[Scummvm-git-logs] scummvm master -> 688a258da6d78f6fa83687eeb8675401bd3038c5
Strangerke
noreply at scummvm.org
Wed Feb 18 07:37:12 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
688a258da6 M4: Add a fix for hypothetical negative font height in item_show (CID 1552012)
Commit: 688a258da6d78f6fa83687eeb8675401bd3038c5
https://github.com/scummvm/scummvm/commit/688a258da6d78f6fa83687eeb8675401bd3038c5
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2026-02-18T08:36:47+01:00
Commit Message:
M4: Add a fix for hypothetical negative font height in item_show (CID 1552012)
Changed paths:
engines/m4/gui/gui_item.cpp
diff --git a/engines/m4/gui/gui_item.cpp b/engines/m4/gui/gui_item.cpp
index d90ebf6205e..d2d32f85848 100644
--- a/engines/m4/gui/gui_item.cpp
+++ b/engines/m4/gui/gui_item.cpp
@@ -1306,6 +1306,8 @@ bool Item_show(Item *i, void *bdrDialog, Buffer *scrBuf, int32 itemType) {
if (i->myFont != currFont)
gr_font_set(i->myFont);
const int32 fontHeight = gr_font_get_height();
+ if (fontHeight < 0)
+ return false;
gr_color_set(__LTGRAY);
gr_buffer_rect_fill(scrBuf, x1, y1, i->w, i->h);
More information about the Scummvm-git-logs
mailing list