From fa2918e2d0c7ea9607c4cb6c885e68b7e234ab91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Wed, 20 Nov 2024 20:40:43 +0800 Subject: [PATCH] libretro: Fix a crash with video refresh. --- desktop_version/libretro/SDL_libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/libretro/SDL_libretro.c b/desktop_version/libretro/SDL_libretro.c index a5e1264202..3878754933 100644 --- a/desktop_version/libretro/SDL_libretro.c +++ b/desktop_version/libretro/SDL_libretro.c @@ -66,7 +66,7 @@ CreateWindowFramebuffer(SDL_VideoDevice* device, /* Create a new one */ SDL_GetWindowSizeInPixels(window, &w, &h); _surface = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, surface_format); - _surface_real = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, surface_format); + _surface_real = SDL_CreateRGBSurfaceWithFormat(0, 320, 240, 0, surface_format); if (!_surface_real) { return -1; }