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, srf,
_engine->getCommandsPausedString(), _engine->getCommandsPausedString(),
0, 0,
(srf->h / 2) - getCurrentFont().getFontHeight(), (srf->h - getCurrentFont().getFontHeight()) / 2 - 1,
data.bounds.right - data.bounds.left, data.bounds.right - data.bounds.left,
kColorBlack, kColorBlack,
Graphics::kTextAlignCenter); Graphics::kTextAlignCenter);

View File

@ -96,14 +96,14 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) {
case MacVenture::kNoGrowDoc: case MacVenture::kNoGrowDoc:
offsets.titleTop = 2; offsets.titleTop = 2;
offsets.titleBottom = 0; offsets.titleBottom = 0;
offsets.titlePos = 0; offsets.titlePos = 29;
break; break;
case MacVenture::kMovableDBox: case MacVenture::kMovableDBox:
break; break;
case MacVenture::kZoomDoc: case MacVenture::kZoomDoc:
offsets.titleTop = 0; offsets.titleTop = 3;
offsets.titleBottom = 0; offsets.titleBottom = 0;
offsets.titlePos = 0; offsets.titlePos = 25;
offsets.upperScrollHeight = 20; offsets.upperScrollHeight = 20;
offsets.lowerScrollHeight = 20; offsets.lowerScrollHeight = 20;
@ -114,9 +114,9 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) {
offsets.titlePos = 0; offsets.titlePos = 0;
break; break;
case MacVenture::kInvWindow: case MacVenture::kInvWindow:
offsets.titleTop = 0; offsets.titleTop = 3;
offsets.titleBottom = 0; offsets.titleBottom = 0;
offsets.titlePos = 0; offsets.titlePos = 36;
offsets.upperScrollHeight = 20; offsets.upperScrollHeight = 20;
offsets.lowerScrollHeight = 20; offsets.lowerScrollHeight = 20;
@ -124,7 +124,7 @@ Graphics::BorderOffsets borderOffsets(MVWindowType type) {
case MacVenture::kRDoc4: case MacVenture::kRDoc4:
offsets.titleTop = 2; offsets.titleTop = 2;
offsets.titleBottom = 0; offsets.titleBottom = 0;
offsets.titlePos = 0; offsets.titlePos = 22;
break; break;
default: default:
break; break;