all repos — mgba @ 0209381d112a9e0a0b6e65764efd50c9a9790ca9

mGBA Game Boy Advance Emulator

SDL: Fix some warnings in sw-sdl.c
Jeffrey Pfau jeffrey@endrift.com
Sun, 22 Feb 2015 01:51:44 -0800
commit

0209381d112a9e0a0b6e65764efd50c9a9790ca9

parent

d497cecfd1c4fec01f3257c002bb8491a7ac5106

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

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

@@ -32,7 +32,7 @@ #else

renderer->tex = SDL_CreateTexture(renderer->sdlRenderer, SDL_PIXELFORMAT_ABGR8888, SDL_TEXTUREACCESS_STREAMING, VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS); #endif - SDL_LockTexture(renderer->tex, 0, &renderer->d.outputBuffer, &renderer->d.outputBufferStride); + SDL_LockTexture(renderer->tex, 0, (void**) &renderer->d.outputBuffer, &renderer->d.outputBufferStride); renderer->d.outputBufferStride /= BYTES_PER_PIXEL; #else SDL_Surface* surface = SDL_GetVideoSurface();

@@ -70,7 +70,7 @@ #if SDL_VERSION_ATLEAST(2, 0, 0)

SDL_UnlockTexture(renderer->tex); SDL_RenderCopy(renderer->sdlRenderer, renderer->tex, 0, 0); SDL_RenderPresent(renderer->sdlRenderer); - SDL_LockTexture(renderer->tex, 0, &renderer->d.outputBuffer, &renderer->d.outputBufferStride); + SDL_LockTexture(renderer->tex, 0, (void**) &renderer->d.outputBuffer, &renderer->d.outputBufferStride); renderer->d.outputBufferStride /= BYTES_PER_PIXEL; #else switch (renderer->ratio) {