The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Need help with HighDPI
Dominus


Joined: 13 Oct 2009
Posts: 127
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 Sad

Can anyone point me forcefully at the right spot, please?
Need help with HighDPI
hardcoredaniel
Guest

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:
Datum: 14. 5. 2016 10:36:33
Předmět: [SDL] Need help with HighDPI
Quote:
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

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

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org