From 081c3db06b38c02bf4e83209fc29465a4bdeae4a Mon Sep 17 00:00:00 2001 From: Avijeet Date: Sun, 4 Sep 2022 15:23:45 +0530 Subject: [PATCH] MACVENTURE: Fix window titles --- engines/macventure/gui.cpp | 2 +- engines/macventure/windows.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp index e03c5bd78ee..1c128ab7882 100644 --- a/engines/macventure/gui.cpp +++ b/engines/macventure/gui.cpp @@ -595,7 +595,7 @@ void Gui::drawCommandsWindow() { srf, _engine->getCommandsPausedString(), 0, - (srf->h / 2) - getCurrentFont().getFontHeight(), + (srf->h - getCurrentFont().getFontHeight()) / 2 - 1, data.bounds.right - data.bounds.left, kColorBlack, Graphics::kTextAlignCenter); diff --git a/engines/macventure/windows.cpp b/engines/macventure/windows.cpp index 600accbe421..b3cb4d8204d 100644 --- a/engines/macventure/windows.cpp +++ b/engines/macventure/windows.cpp @@ -96,14 +96,14 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) { case MacVenture::kNoGrowDoc: offsets.titleTop = 2; offsets.titleBottom = 0; - offsets.titlePos = 0; + offsets.titlePos = 29; break; case MacVenture::kMovableDBox: break; case MacVenture::kZoomDoc: - offsets.titleTop = 0; + offsets.titleTop = 3; offsets.titleBottom = 0; - offsets.titlePos = 0; + offsets.titlePos = 25; offsets.upperScrollHeight = 20; offsets.lowerScrollHeight = 20; @@ -114,9 +114,9 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) { offsets.titlePos = 0; break; case MacVenture::kInvWindow: - offsets.titleTop = 0; + offsets.titleTop = 3; offsets.titleBottom = 0; - offsets.titlePos = 0; + offsets.titlePos = 36; offsets.upperScrollHeight = 20; offsets.lowerScrollHeight = 20; @@ -124,7 +124,7 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) { case MacVenture::kRDoc4: offsets.titleTop = 2; offsets.titleBottom = 0; - offsets.titlePos = 0; + offsets.titlePos = 22; break; default: break;