osu-framework icon indicating copy to clipboard operation
osu-framework copied to clipboard

Game runs at incorrect orientation on windows when using rotated secondary display in fullscreen

Open Doksha opened this issue 3 years ago • 9 comments

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

Doksha avatar Apr 11 '22 23:04 Doksha

Can you show what the result of this is? Are you implying the window is the wrong way up or something?

peppy avatar Apr 12 '22 00:04 peppy

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)

Doksha avatar Apr 12 '22 00:04 Doksha

Thanks. Can you also provide a screenshot of your display settings showing the screen layout?

peppy avatar Apr 12 '22 01:04 peppy

Main monitor (right) secondary monitor (left)

Doksha avatar Apr 12 '22 20:04 Doksha

Transferring from osu. Not sure if this is something our end or SDL's end.

peppy avatar Apr 21 '22 08:04 peppy

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)

Susko3 avatar Apr 21 '22 11:04 Susko3

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.

FreezyLemon avatar Jul 03 '22 14:07 FreezyLemon

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

limlim9999 avatar Dec 01 '22 17:12 limlim9999

LMK if videos / log is needed

Post if you can, always good to have another data point.

Susko3 avatar Dec 04 '22 22:12 Susko3