[Scummvm-tracker] [ScummVM :: Bugs] #12822: MAC: Cusor jumps at window edges with OpenGL + Fullscreen + AR Correction

ScummVM :: Bugs trac at scummvm.org
Thu Aug 19 23:10:50 UTC 2021


#12822: MAC: Cusor jumps at window edges with OpenGL + Fullscreen + AR Correction
----------------------+-----------------------------
Reporter:  sluicebox  |       Owner:  (none)
    Type:  defect     |      Status:  new
Priority:  normal     |   Component:  Port: Mac OS X
 Version:             |  Resolution:
Keywords:             |        Game:
----------------------+-----------------------------
Comment (by criezy):

 This is a regression from the HiDPI changes. Warping the cursor in the SDL
 Window does not use the correct coordinates on macOS.

 I think the aspect ratio correction might be a red herring.

 The issue occurs when the backend is trying to warp the cursor back inside
 the game area after the user moves it outside the game area. So it only
 happens if you have black bars on the side, which for me only happen when
 aspect ratio correction is on, or when playing a 640x480 game.

 Another way to see the issue is to had hotkeys to move the mouse in the
 ScummVM options, and then use those. If you try to click after you moved
 the cursor that way, you will see that the cursor is not where you think
 it is. This is quite clearly visible in the Launcher. And you don't need
 to enable aspect ratio correction to reproduce that issue.

 I suspect the only system affected by this bug currently is macOS when
 using retina screen due to differences in the way SDL handles HiDPI
 depending on the system (see the various hacks we already haven the
 backend because of that).
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12822#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list