Thanks very much again. How does this look:
if SDL_Linked_Version_AtLeast(2, 0, 4) then
screen_flags = bit.bor(full_screen and 1 or 0,
SDL.SDL_WINDOW_RESIZABLE,
SDL.SDL_WINDOW_ALLOW_HIGHDPI)
else
screen_flags = bit.bor(full_screen and 1 or 0,
SDL.SDL_WINDOW_RESIZABLE)
end
I added this to SDL2_0_decl.c
SDL2_0_decl.c:cdecl_const(SDL_WINDOW_ALLOW_HIGHDPI )
|