Opened 7 months ago

Last modified 3 months ago

#10586 new defect

MOHAWK: MYST: Focus issues with Gamebar enabled on Windows 10

Reported by: lotharsm Owned by:
Priority: blocker Component: Port: Win32
Keywords: myst25 Cc:
Game: Myst

Description

-Myst25 related-

I used the latest build bgK sent to Cyan running on Windows 10, 17134.112.

When the game bar in Windows 10 is enabled, ScummVM loses the mouse cursor focus when hovering over the area where the initial gamebar notification is displayed.

Easiest way to replicate this is to start a new game and go to the Observatory. Enter it and try to hit the button that switches off the lights. As soon as you hover over it, the mouse cursor will loose focus and you won't be able to click the button.

The issue can be replicated with SDL2.0.5 and SDL2.0.8. Note that it is not present when using the default SDL2 renderer instead of OpenGL.

Change History (8)

comment:1 Changed 7 months ago by lotharsm

I was able to replicate this on two machines, one running AMD graphics and one with integrated Intel GPU.

comment:2 Changed 7 months ago by dafioram

Thanks for your report. Can you please try this again? I was able to reproduce it with 2.0.8, but it went away once I switched to 2.0.5.

comment:3 Changed 7 months ago by lotharsm

Thanks for your reply!

I already tried with both SDL 2.0.5 and SDL 2.0.8, and the issue still persists. The only way to circumvent this issue is to either disable the Gamebar in Windows entirely or switch to the default SDL2 renderer instead of OpenGL (no issues then with either SDL 2.0.5 or .8).

comment:4 Changed 7 months ago by dafioram

Is there any chance when you switch the sdl versions it is still using sdl 2.0.8? Are you running the game via the .cmd? Which test version are you using? The 2.0.5 sdl .dll I used I took from the win32 kirben scummvm builds.

comment:5 Changed 7 months ago by lotharsm

I used a test build made by bgK and which comes bundled with SDL 2.0.5. Since I directly replaced the SDL2 .dll in the application's folder for my tests, there's no chance that the wrong SDL2 version was loaded.

comment:6 Changed 7 months ago by dafioram

Maybe one of the other graphics modes will do. HQ3x looks the best to me, but we can't guarantee the users screen size is > 3x 544x332.

comment:7 Changed 7 months ago by dafioram

A workaround that would allow opengl to be used would be to start up the game in windowed mode and after a very short amount of time switch to fullscreen (if confman fullscreen == true).

Similarly some sort of delay after starting scummvm where the OS still has display priority.

Apparently delaying fullscreen mode does not fix this issue on all windows 10 devices (see https://bugs.scummvm.org/ticket/10587#comment:7)

Last edited 7 months ago by dafioram (previous) (diff)

comment:8 Changed 3 months ago by digitall

Component: PortsPort: Win32
Note: See TracTickets for help on using tickets.