Menu

#6719 SCUMM: In-game help missing line of text on 2nd help screen

SCUMM unsorted
closed-fixed
5
2014-10-26
2014-08-24
Ben
No

The SCUMM engine in-game help is missing a line of text. It seems it has disappeared since v1.5 of ScummVM. Two screenshots attached (one of a v1.4 and one of v1.7 of ScummVM) both from the official win32 distribution.

2 Attachments

Discussion

  • digitall

    digitall - 2014-08-26
    • summary: SCUMM in-game help missing line of text on 2nd help screen --> SCUMM: In-game help missing line of text on 2nd help screen
     
  • digitall

    digitall - 2014-08-26

    Comparing the images, this is due to the last line "or incorrect game behavior." being hidden off the bottom of the text box i.e. the amount of text is too big for the box in the font used...

     
  • digitall

    digitall - 2014-08-26

    specifically the line:
    https://github.com/scummvm/scummvm/blob/master/engines/scumm/help.cpp#L110
    is the responsible code.

    However, none of the code in this file has been changed between v1.5 and v1.6.

    I suspect the cause will be a change in the GUI or font common code as the font is notably different between the screenshots.

     
  • Ben

    Ben - 2014-09-03

    The cause of this is the use of a larger font since 1.4. https://github.com/scummvm/scummvm/blob/master/engines/scumm/dialogs.cpp#L307 get's the lineheight. This used to be 14, but is now 15.

    Possible solutions to this are :

    • Remove the recalculation of _numLines at dialogs.cpp:315. The height of the widget is 220, 220/15=14,66666667 which gets rounded down to 14. While it used to be 220/14=15,71428571 which is rounded to 15 lines. Removing the calculation will cause the default of 15 (HELP_NUM_LINES) being used. A screenshot is attached of how that will look (on Win7)
    • Change the formula, since it looks like 15 lines easily fit in this widget it might need an update.
    • Remove one of the empty lines (ADD_LINE) from the help.cpp:103 making the help fit in 14 lines.
    • Change the font to one with a height of 14 again.
     
  • digitall

    digitall - 2014-10-26

    Ben has submitted a fix for this as a Pull Request here:
    https://github.com/scummvm/scummvm/pull/503

    Once this fix gets merged, this bug can be closed as fixed.

     
  • Filippos Karapetis

    • status: open --> closed-fixed
    • assigned_to: Filippos Karapetis
     
  • Filippos Karapetis

    Merged Ben Castricum's pull request. The changes are minimal and fix the help dialog with the new theme. The fix will be available in the next daily version of ScummVM.

    Thanks Ben for all the work on this issue! :)

    Closing as fixed.

     
MongoDB Logo MongoDB