Need help with HighDPI

Hi all,

for Exult (https://github.com/exult/exult) I tried to implement the SDL_WINDOW_ALLOW_HIGHDPI but I’m stumped on where to add this.

The relevant code AFAICT begins at https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L539 and especially at https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L565 when we declare the flags and then go off into our SDL2 code.

Or it is at https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L647 - I have no real clue as you can tell :frowning:

Can anyone point me forcefully at the right spot, please?

I have added it to this function:

SDL_CreateWindow()

The last parameter “flags” is where you specify the highdpi flag (amongst
others).

---------- P?vodn? zpr?va ----------
Od: Dominus
Komu: sdl at lists.libsdl.org
Datum: 14. 5. 2016 10:36:33
P?edm?t: [SDL] Need help with HighDPI

"

Hi all,

for Exult (https://github.com/exult/exult) I tried to implement the SDL_
WINDOW_ALLOW_HIGHDPI but I’m stumped on where to add this.

The relevant code AFAICT begins at https://github.com/exult/exult/blob/
master/imagewin/imagewin.cc#L539
(https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L539) and
especially at https://github.com/exult/exult/blob/master/imagewin/imagewin.
cc#L565
(https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L565) when
we declare the flags and then go off into our SDL2 code.

Or it is at https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#
L647(https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L647) -
I have no real clue as you can tell Sad

Can anyone point me forcefully at the right spot, please?_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org"