[Scummvm-git-logs] scummvm master -> 053797abafd54687f8a73f0896bc101bf1345935

bluegr noreply at scummvm.org
Sat Sep 13 21:38:59 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:
053797abaf WINTERMUTE: Fix compilation


Commit: 053797abafd54687f8a73f0896bc101bf1345935
    https://github.com/scummvm/scummvm/commit/053797abafd54687f8a73f0896bc101bf1345935
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2025-09-14T00:38:55+03:00

Commit Message:
WINTERMUTE: Fix compilation

Fix compilation under Windows by assigning a default value for `startX`

Changed paths:
    engines/wintermute/base/font/base_font_bitmap.cpp


diff --git a/engines/wintermute/base/font/base_font_bitmap.cpp b/engines/wintermute/base/font/base_font_bitmap.cpp
index f4dbf82524a..a45124a8479 100644
--- a/engines/wintermute/base/font/base_font_bitmap.cpp
+++ b/engines/wintermute/base/font/base_font_bitmap.cpp
@@ -192,7 +192,7 @@ int BaseFontBitmap::textHeightDraw(const byte *text, int x, int y, int width, TT
 			if (end < 0) {
 				done = true;
 			}
-			int startX;
+			int startX = 0;
 			switch (align) {
 			case TAL_CENTER:
 				startX = x + (width - realLength) / 2;




More information about the Scummvm-git-logs mailing list