Thanks very much, NiLuJe and pazos. I threw this in (not to submit, just to try):
bit.bor(bit.bor(full_screen and 1 or 0, SDL.SDL_WINDOW_RESIZABLE), SDL.SDL_WINDOW_ALLOW_HIGHDPI)
and also had to add this to
SDL2_0_h.lua line 853
static const int SDL_WINDOW_ALLOW_HIGHDPI = 4096;
I'm not sure if there is any interest in this, but I can submit it as a fix after wrapping things nicely and setting the flags in a nicer way.
|