Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] ffi/SDL2: crash with SDL_FULLSCREEN #900

Merged
merged 1 commit into from
Apr 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ffi/SDL2_0.lua
Expand Up @@ -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
Expand Down