Re: Possible bug in SDL_WINDOWPOS_CENTERED_DISPLAY(x)
"^DJ_Link^" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
After some investigation I found out that
WIN_GetDisplayBounds in SDL_windowsmodes.c always returns 0, which leads to part of the code in
SDL_GetDisplayBounds (SDL_video.c) never running, which may well the intend way. But in any case I'm still under the impression that
there is some issue when secondary monitor is hi-dpi and primary one is not.
Code:
if (_this->GetDisplayBounds) {
if (_this->GetDisplayBounds(_this, display, rect) == 0) {
return 0; //On windows always hits here??
}
}
//And never runs this code ??
/* Assume that the displays are left to right */
if (displayIndex == 0) {
rect->x = 0;
rect->y = 0;
} else {
------------------------
twitter.com/DJ_Link
www.david-amador.com
www.upfallstudios.com
_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org