[Scummvm-tracker] [ScummVM :: Bugs] #13601: AGS: Time Gentlemen, Please - random crashes to desktop in the first scene of the game

ScummVM :: Bugs trac at scummvm.org
Mon Jun 20 21:42:44 UTC 2022


#13601: AGS: Time Gentlemen, Please - random crashes to desktop in the first scene
of the game
-----------------------+--------------------------
Reporter:  antoniou79  |       Owner:  criezy
    Type:  defect      |      Status:  closed
Priority:  normal      |   Component:  Engine: AGS
 Version:              |  Resolution:  fixed
Keywords:              |        Game:
-----------------------+--------------------------
Changes (by criezy):

 * owner:  (none) => criezy
 * status:  new => closed
 * resolution:   => fixed

Comment:

 Our alfont code is almost identical to the code from upstream AGS and I
 could not detect a difference that would explain the crash.

 It does seem to have an inconsistency between
 `alfont_get_font_real_height()` and the `max_bmp_y` computed in
 `alfont_textout_ex()`, causing the allocated surface to be smaller than
 expected for the draw by a few pixels. There are a number of hack on the
 computation of the real height, so possible one of those is the culprit.
 But I don't want to start changing those hacks, so instead I have added a
 sanity check in `putpixel()` to make sure we do not attempt to write
 outside of the surface.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13601#comment:5>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list