[Scummvm-git-logs] scummvm master -> afaef26fded93c973cdb27f817f5eb15ad012e27

sev- noreply at scummvm.org
Mon Jun 27 14:52:26 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
afaef26fde PINK: Don't delete hebrew font in Screen


Commit: afaef26fded93c973cdb27f817f5eb15ad012e27
    https://github.com/scummvm/scummvm/commit/afaef26fded93c973cdb27f817f5eb15ad012e27
Author: Avijeet (am388488 at gmail.com)
Date: 2022-06-27T16:52:23+02:00

Commit Message:
PINK: Don't delete hebrew font in Screen

Changed paths:
    engines/pink/screen.cpp


diff --git a/engines/pink/screen.cpp b/engines/pink/screen.cpp
index f504d2a9a9e..12643ebb68d 100644
--- a/engines/pink/screen.cpp
+++ b/engines/pink/screen.cpp
@@ -106,15 +106,15 @@ Screen::Screen(PinkEngine *vm)
 	_wm->setEngineRedrawCallback(this, redrawCallback);
 
 	_textFont = nullptr;
-
+	_textFontCleanup = true;
 #ifdef USE_FREETYPE2
 	if (vm->getLanguage() == Common::HE_ISR) {
 		_textFont = _wm->_fontMan->getFont(Graphics::MacFont(Graphics::kMacFontChicago, 12, Graphics::kMacFontRegular));
+		_textFontCleanup = false;
 	} else {
 		_textFont = Graphics::loadTTFFontFromArchive("system.ttf", 16);
 	}
 #endif
-	_textFontCleanup = true;
 
 	if (!_textFont) {
 		_textFont = FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);




More information about the Scummvm-git-logs mailing list