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
This commit is contained in:
parent
cf274fa47e
commit
d6a1248a16
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue