Possible bug in SDL_WINDOWPOS_CENTERED_DISPLAY(x) |
^DJ_Link^
|
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.
|
|||||||||||||
|
^DJ_Link^
|
Forgot to mention, but this issue is reproducible on my system using testgl2 on SDL source code.
I just have to switch on SDL_test_common.c from state->window_x = SDL_WINDOWPOS_UNDEFINED; state->window_y = SDL_WINDOWPOS_UNDEFINED; to state->window_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(1); state->window_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(1); on line 50 and using the setup I mentioned |
|||||||||||
|