[Scummvm-git-logs] scummvm master -> 2a74d9e82665ee374e90b2856463743cabaa51e4
dreammaster
noreply at scummvm.org
Fri Aug 7 02:20:56 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:
2a74d9e826 MADS: NEBULAR: Fix underlining the title row in dialogs
Commit: 2a74d9e82665ee374e90b2856463743cabaa51e4
https://github.com/scummvm/scummvm/commit/2a74d9e82665ee374e90b2856463743cabaa51e4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-08-07T12:14:39+10:00
Commit Message:
MADS: NEBULAR: Fix underlining the title row in dialogs
Assisted-by: Claude Code:claude-opus-4.8
Changed paths:
engines/mads/nebular/popup.cpp
diff --git a/engines/mads/nebular/popup.cpp b/engines/mads/nebular/popup.cpp
index 54ad8bcd377..fab74d6eada 100644
--- a/engines/mads/nebular/popup.cpp
+++ b/engines/mads/nebular/popup.cpp
@@ -132,14 +132,14 @@ void popup_draw() {
box->xs - 4, 1, DIALOG_BLACK_COLOR);
} else {
int tab = box->tab[lineCtr];
- int xp = (tab & 0x7f) + box->x + 5;
+ int xp = (tab & ~(POPUP_UNDERLINE | POPUP_DOWNPIXEL)) + box->x + 5;
int yp = askY;
- if (tab & 0x40)
+ if (tab & POPUP_DOWNPIXEL)
yp++;
font_write(box_param.font, &scr_main, box->text[lineCtr], xp, yp, 1);
- if (tab & 0x80) {
+ if (tab & POPUP_UNDERLINE) {
buffer_rect_fill(scr_main, xp, yp + box_param.font->max_y_size,
font_string_width(box_param.font, box->text[lineCtr], 1), 1, DIALOG_BLACK_COLOR);
}
More information about the Scummvm-git-logs
mailing list