all repos — mgba @ e7226e76496ca7920daa5ea318a44ee4eb9d1378

mGBA Game Boy Advance Emulator

GBA Video: Fix minor errors
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Aug 2016 00:08:04 -0700
commit

e7226e76496ca7920daa5ea318a44ee4eb9d1378

parent

c3b411fb6b99e91f6f8582f699345806099facf2

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/renderers/thread-proxy.csrc/gba/renderers/thread-proxy.c

@@ -126,7 +126,7 @@ }

void _proxyThreadRecover(struct GBAVideoThreadProxyRenderer* proxyRenderer) { MutexLock(&proxyRenderer->mutex); - while (proxyRenderer->threadState != PROXY_THREAD_STOPPED) { + if (proxyRenderer->threadState != PROXY_THREAD_STOPPED) { MutexUnlock(&proxyRenderer->mutex); return; }

@@ -139,7 +139,7 @@ }

static bool _writeData(struct GBAVideoThreadProxyRenderer* proxyRenderer, void* data, size_t length) { while (!RingFIFOWrite(&proxyRenderer->dirtyQueue, data, length)) { - mLOG(GBA_VIDEO, WARN, "Can't write 0x%zu bytes. Proxy thread asleep?", length); + mLOG(GBA_VIDEO, WARN, "Can't write %zu bytes. Proxy thread asleep?", length); mLOG(GBA_VIDEO, DEBUG, "Queue status: read: %p, write: %p", proxyRenderer->dirtyQueue.readPtr, proxyRenderer->dirtyQueue.writePtr); MutexLock(&proxyRenderer->mutex); if (proxyRenderer->threadState == PROXY_THREAD_STOPPED) {