[Scummvm-git-logs] scummvm master -> 2c75cd82d480cb189e3b356cbfadbe5472a32485

sev- noreply at scummvm.org
Tue Jul 21 11:00:46 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:
2c75cd82d4 MACVENTURE: Initialize titlePadding in borderOffsets


Commit: 2c75cd82d480cb189e3b356cbfadbe5472a32485
    https://github.com/scummvm/scummvm/commit/2c75cd82d480cb189e3b356cbfadbe5472a32485
Author: Ion Andrei Cristian (lecturatul2017 at gmail.com)
Date: 2026-07-21T13:00:41+02:00

Commit Message:
MACVENTURE: Initialize titlePadding in borderOffsets

The titlePadding field of Graphics::BorderOffsets was left uninitialized
in borderOffsets(), which sets every other field explicitly. The garbage
value propagated into the console window's title width calculation
(nine_patch.cpp: dw = _h._fix + _titleWidth), overflowing the destination
width and producing an invalid Common::Rect, aborting on the isValidRect()
assertion during GUI init. Initialize it to 0 like the other offsets.

Changed paths:
    engines/macventure/windows.cpp


diff --git a/engines/macventure/windows.cpp b/engines/macventure/windows.cpp
index 08bdebac664..27d4043745e 100644
--- a/engines/macventure/windows.cpp
+++ b/engines/macventure/windows.cpp
@@ -88,6 +88,7 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) {
 	offsets.resizeButtonHeight = 0;
 	offsets.upperScrollHeight = 0;
 	offsets.lowerScrollHeight = 0;
+	offsets.titlePadding = 0;
 
 	switch (type) {
 	case MacVenture::kDocument:




More information about the Scummvm-git-logs mailing list