all repos — mgba @ cea5864f817fe92ab2d1df85e5dd318aef788196

mGBA Game Boy Advance Emulator

SDL: Fix software renderer build
Cameron Cawley ccawley2011@gmail.com
Sat, 30 Sep 2017 19:02:10 +0100
commit

cea5864f817fe92ab2d1df85e5dd318aef788196

parent

232880bb0074eac3308ece3b006cb01902bbe035

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

jump to
M src/platform/sdl/sw-sdl.csrc/platform/sdl/sw-sdl.c

@@ -93,12 +93,12 @@ #if !SDL_VERSION_ATLEAST(2, 0, 0)

SDL_Surface* surface = SDL_GetVideoSurface(); #endif - while (context->state < THREAD_EXITING) { + while (mCoreThreadIsActive(context)) { while (SDL_PollEvent(&event)) { mSDLHandleEvent(context, &renderer->player, &event); } - if (mCoreSyncWaitFrameStart(&context->sync)) { + if (mCoreSyncWaitFrameStart(&context->impl->sync)) { #if SDL_VERSION_ATLEAST(2, 0, 0) SDL_UnlockTexture(renderer->sdlTex); SDL_RenderCopy(renderer->sdlRenderer, renderer->sdlTex, 0, 0);

@@ -134,7 +134,7 @@ SDL_Flip(surface);

SDL_LockSurface(surface); #endif } - mCoreSyncWaitFrameEnd(&context->sync); + mCoreSyncWaitFrameEnd(&context->impl->sync); } }