MACVENTURE: Fix window titles

This commit is contained in:
Avijeet 2022-09-04 15:23:45 +05:30 committed by Eugene Sandulenko
parent 26c3c4f160
commit 081c3db06b
2 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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;