From dc85617742683cca94e0b0e7c5498de91bbf0b2b Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Mon, 22 Apr 2019 16:47:42 +0200 Subject: [PATCH] [fix] ffi/SDL2: crash with `SDL_FULLSCREEN` Only actively used on device ports (Ubuntu Touch, Sailfish), so it was silently broken. Cf. https://github.com/koreader/koreader/issues/4960 and https://github.com/koreader/koreader-base/issues/899 --- ffi/SDL2_0.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffi/SDL2_0.lua b/ffi/SDL2_0.lua index f26196117..ad72318dd 100644 --- a/ffi/SDL2_0.lua +++ b/ffi/SDL2_0.lua @@ -77,7 +77,7 @@ function S.open() local full_screen = os.getenv("SDL_FULLSCREEN") if full_screen then - local mode = ffi.new("struct SDL_DisplayMode") + local mode = ffi.new("SDL_DisplayMode") if SDL.SDL_GetCurrentDisplayMode(0, mode) ~= 0 then error("SDL cannot get current display mode.") end