[Scummvm-tracker] [ScummVM :: Bugs] #13561: Sanitarium: Random audio glitch and savegame thumbnails flickering

ScummVM :: Bugs trac at scummvm.org
Thu Jun 16 14:38:24 UTC 2022


#13561: Sanitarium: Random audio glitch and savegame thumbnails flickering
--------------------------------+-----------------------------
Reporter:  autistinenhomokissa  |       Owner:  (none)
    Type:  defect               |      Status:  new
Priority:  normal               |   Component:  Engine: Asylum
 Version:                       |  Resolution:
Keywords:                       |        Game:  Sanitarium
--------------------------------+-----------------------------
Comment (by antoniou79):

 There are two issues that affect the flickering on OpenGL.
 1. The main issue is that the overlay's dimensions are set to the
 monitor's resolution, but the game (which natively is 640x480) can be
 drawn in a number of ways on the monitor's surface (I think stretch mode
 is more of a factor here). This means that the adjustCoordinates()
 assuming a stretched scale of the game's width and height (640x480) to the
 monitor's (overlay) surface is not always right -- but in theory it should
 be for example if Stretch Mode is set to "Stretch to Window" and
 FullScreen is enabled.
 2. The other issue is that it seems that the cursor coordinates are only
 updated if the mouse actually moves. But for the case of the transition to
 the overlay (showThumbnail()), the code assumes that in the next
 updateLoadGame() call, with the overlay enabled, the coordinates will need
 adjustment -- but if the mouse did not move, it will adjust the old
 coordinates to some bad x,y. It will then proceed to disable the overlay
 (remove the thumbnail). Thus the flickering with the cursor not moving.

 If possible I would suggest to not use the overlay at all to draw the
 thumbnail.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13561#comment:9>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list