Skip to content

Commit d5126ef

Browse files
author
宋文武
committed
libretro: Fix a crash with video refresh.
1 parent 9ef0c1d commit d5126ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

desktop_version/libretro/SDL_libretro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CreateWindowFramebuffer(SDL_VideoDevice* device,
6666
/* Create a new one */
6767
SDL_GetWindowSizeInPixels(window, &w, &h);
6868
_surface = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, surface_format);
69-
_surface_real = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, surface_format);
69+
_surface_real = SDL_CreateRGBSurfaceWithFormat(0, 320, 240, 0, surface_format);
7070
if (!_surface_real) {
7171
return -1;
7272
}

0 commit comments

Comments
 (0)