[Scummvm-git-logs] scummvm master -> 5d2d07e351d35b7f96f673cd1f720e7cb70d6b42
dreammaster
noreply at scummvm.org
Tue Dec 2 08:07:26 UTC 2025
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:
5d2d07e351 BAGEL: METAGAME: Fix font size in notebook dialog
Commit: 5d2d07e351d35b7f96f673cd1f720e7cb70d6b42
https://github.com/scummvm/scummvm/commit/5d2d07e351d35b7f96f673cd1f720e7cb70d6b42
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-12-02T00:07:13-08:00
Commit Message:
BAGEL: METAGAME: Fix font size in notebook dialog
Changed paths:
engines/bagel/hodjnpodj/metagame/bgen/notebook.cpp
engines/bagel/hodjnpodj/metagame/bgen/notebook.h
diff --git a/engines/bagel/hodjnpodj/metagame/bgen/notebook.cpp b/engines/bagel/hodjnpodj/metagame/bgen/notebook.cpp
index a064c47678c..8c7f846a34c 100644
--- a/engines/bagel/hodjnpodj/metagame/bgen/notebook.cpp
+++ b/engines/bagel/hodjnpodj/metagame/bgen/notebook.cpp
@@ -39,6 +39,7 @@ namespace Gtl {
#define TEXT_MORE_DY 5 // offset of "more" indicator bottom of scroll
#define MORE_TEXT_BLURB "[ More ]" // actual text to display for "more" indicator
#define MORE_TEXT_LENGTH 8 // # characters in "more" indicator string
+#define FONT_SIZE 32
extern CBfcMgr *lpMetaGameStruct;
@@ -390,14 +391,14 @@ void CNotebook::UpdateNotebook(CDC *pDC) {
PaintMaskedBitmap(pDC, pBackgroundPalette, pNotebookBitmap, 0, 0, NOTEBOOK_DX, NOTEBOOK_DY);
UpdateContent(pDC);
// if (pTitleText != nullptr)
- // (*pTitleText).DisplayString(pDC, "Log Entries", 32, TEXT_HEAVY, RGB(128,0,128));
+ // (*pTitleText).DisplayString(pDC, "Log Entries", FONT_SIZE, TEXT_HEAVY, RGB(128,0,128));
} else {
if (pBackgroundBitmap != nullptr) // ... otherwise revise work area
PaintBitmap(pWorkDC, pBackgroundPalette, pBackgroundBitmap, 0, 0, NOTEBOOK_DX, NOTEBOOK_DY);
PaintMaskedBitmap(pWorkDC, pBackgroundPalette, pNotebookBitmap, 0, 0, NOTEBOOK_DX, NOTEBOOK_DY);
UpdateContent(pWorkDC); // ... then zap it to the screen
// if (pTitleText != nullptr)
- // (*pTitleText).DisplayString(pWorkDC, "Log Entries", 32, TEXT_HEAVY, RGB(128,0,128));
+ // (*pTitleText).DisplayString(pWorkDC, "Log Entries", FONT_SIZE, TEXT_HEAVY, RGB(128,0,128));
(*pDC).BitBlt(0, 0, NOTEBOOK_DX, NOTEBOOK_DY, pWorkDC, 0, 0, SRCCOPY);
}
@@ -460,7 +461,7 @@ void CNotebook::UpdateContent(CDC *pDC) {
NOTE_TEXT_DX + NOTE_TEXT_DDX,
NOTE_TEXT_DY + NOTE_TEXT_DDY);
pText = new CText(pDC, pBackgroundPalette, &myRect, JUSTIFY_CENTER);
- (*pText).DisplayString(pDC, "The log is empty ...", 32, TEXT_BOLD, RGB(128, 0, 128));
+ (*pText).DisplayString(pDC, "The log is empty ...", FONT_SIZE, TEXT_BOLD, RGB(128, 0, 128));
delete pText;
return;
} else
diff --git a/engines/bagel/hodjnpodj/metagame/bgen/notebook.h b/engines/bagel/hodjnpodj/metagame/bgen/notebook.h
index 6a15893b94d..38ae1c6f03b 100644
--- a/engines/bagel/hodjnpodj/metagame/bgen/notebook.h
+++ b/engines/bagel/hodjnpodj/metagame/bgen/notebook.h
@@ -61,7 +61,7 @@ namespace Gtl {
#define IDC_NOTEBOOK_BOOK 921
#define IDC_NOTEBOOK_SOUND 922
-#define NOTE_FONT_SIZE -16
+#define NOTE_FONT_SIZE -12
#define NOTE_TEXT_COLOR RGB(128,0,128)
#define NOTE_MORE_COLOR RGB(0,0,0)
More information about the Scummvm-git-logs
mailing list