osu-framework
osu-framework copied to clipboard
Game runs at incorrect orientation on windows when using rotated secondary display in fullscreen
Type
Game behaviour
Bug description
If you have a second monitor that is a different rotation to your main monitor (my main monitor is normal, my secondary monitor is flipped) the game will ignore the rotation of the screen it is currently on and force it to the main monitor's rotation.
Screenshots or videos
No response
Version
2022.409.0-lazer
Logs
network.log runtime.log performance.log updater.log database.log legacy-ipc.log
Can you show what the result of this is? Are you implying the window is the wrong way up or something?
Can you show what the result of this is? Are you implying the window is the wrong way up or something?
This issue is a duplicate of https://github.com/ppy/osu-stable-issues/issues/553 in stable I believe that issue shows it correctly I was just wanting to mark this as an issue in lazer since there isnt already a ticket for it.
I also recorded a video a while back showing the issue https://youtu.be/UAZWzhzQF7o (And the issue is no different between lazer and stable)
Thanks. Can you also provide a screenshot of your display settings showing the screen layout?

Transferring from osu. Not sure if this is something our end or SDL's end.
Due to how we're setting the fullscreen display mode (i.e. querying SDL_GetClosestDisplayMode) I think this is a problem with SDL.
FWIW I couldn't reproduce this on my machines, the secondary monitor would keep it's orientation. Tested on following GPUs:
- AMD Radeon R7 370
- Nvidia Quadro NVS 140M (laptop)
I can't reproduce this either on my 2 monitors (AMD GPU). Can someone try on an nvidia desktop GPU (logs state GTX 1650 Super)?
btw: The display orientation seems to be stored in the driverdata section of the SDL_DisplayMode struct. That value is always correct in my tests.
I can reproduce this issue on my side on both stable and lazer branch. Happen only in fullscreen mode.
GPU was GTX 1660 TI.
LMK if videos / log is needed
LMK if videos / log is needed
Post if you can, always good to have another data point.