[Scummvm-git-logs] scummvm master -> 8268bed89fb95a6dfb2f7be462ce9a0208119e2b

aquadran noreply at scummvm.org
Mon Aug 3 10:05:11 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:
8268bed89f WINTERMUTE: Tune line height more


Commit: 8268bed89fb95a6dfb2f7be462ce9a0208119e2b
    https://github.com/scummvm/scummvm/commit/8268bed89fb95a6dfb2f7be462ce9a0208119e2b
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-08-03T12:04:52+02:00

Commit Message:
WINTERMUTE: Tune line height more

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


diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 3e4353f6b3d..76207203b11 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -704,10 +704,7 @@ bool BaseFontTT::initFont() {
 	}
 
 	auto box = _font->getBoundingBox("Ay");
-	_lineHeight = box.bottom - box.top;
-
-	// based on WME lite code:
-	_lineHeight += 2;
+	_lineHeight = MAX(box.bottom - box.top, _font->getFontHeight());
 
 #ifdef ENABLE_FOXTAIL
 	if (BaseEngine::instance().isFoxTail(FOXTAIL_1_2_896, FOXTAIL_LATEST_VERSION)) {




More information about the Scummvm-git-logs mailing list