[Scummvm-git-logs] scummvm master -> d6a1248a160d2cd55c274cf9bb106e7273d9f003
bluegr
bluegr at gmail.com
Sun Jun 30 11:20:39 CEST 2019
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:
d6a1248a16 WINTERMUTE: Increase window title height by 1 for "5 Lethal Demons" game
Commit: d6a1248a160d2cd55c274cf9bb106e7273d9f003
https://github.com/scummvm/scummvm/commit/d6a1248a160d2cd55c274cf9bb106e7273d9f003
Author: lolbot-iichan (lolbot_iichan at mail.ru)
Date: 2019-06-30T12:20:36+03:00
Commit Message:
WINTERMUTE: Increase window title height by 1 for "5 Lethal Demons" game
For some reason getFontHeight() is off-by-one comparing to height set in
TITLE_RECT, which made text being bigger then title rect and drawing was
skipped.
This fixes https://bugs.scummvm.org/ticket/6501
Changed paths:
engines/wintermute/ui/ui_window.cpp
diff --git a/engines/wintermute/ui/ui_window.cpp b/engines/wintermute/ui/ui_window.cpp
index 34341d1..c8496c1 100644
--- a/engines/wintermute/ui/ui_window.cpp
+++ b/engines/wintermute/ui/ui_window.cpp
@@ -27,6 +27,7 @@
*/
#include "engines/wintermute/base/base_game.h"
+#include "engines/wintermute/base/base_engine.h"
#include "engines/wintermute/base/base_parser.h"
#include "engines/wintermute/base/base_active_rect.h"
#include "engines/wintermute/base/base_dynamic_buffer.h"
@@ -604,6 +605,13 @@ bool UIWindow::loadBuffer(char *buffer, bool complete) {
return STATUS_FAILED;
}
+ // HACK: Increase window title height by 1 for "5 Lethal Demons" game
+ // For some reason getFontHeight() is off-by-one comparing to height set in TITLE_RECT,
+ // Which made text being bigger then title rect and drawing was skipped.
+ if (BaseEngine::instance().getGameId() == "5ld" && !_titleRect.isRectEmpty() && _text) {
+ _titleRect.bottom ++;
+ }
+
correctSize();
if (alpha != 0 && ar == 0 && ag == 0 && ab == 0) {
More information about the Scummvm-git-logs
mailing list