Minor adjustments to the editor

This commit is contained in:
Curle 2021-06-16 22:56:46 +01:00
parent 5c4a557755
commit 28a29ecdff
Signed by: TheCurle
GPG Key ID: 5942F13718443F79

View File

@ -20,12 +20,18 @@ void StartEditor(int callbackID) {
layout.ScreenWidth = PrintInfo.screenWidth;
layout.HeaderHeight = layout.ScreenHeight / 100 * 3;
layout.TextBoxHeight = (layout.ScreenHeight - layout.HeaderHeight) / 100 * 95;
layout.TextBoxY = ((layout.ScreenHeight + - layout.HeaderHeight) - layout.TextBoxHeight) / 2;
layout.TextBoxWidth = layout.ScreenWidth / 100 * 95;
layout.TextBoxX = (layout.ScreenWidth - layout.TextBoxWidth) / 2;
SetForegroundColor(0x000084);
FillScreen();
SetForegroundColor(0x00BBBBBB);
DrawFilledRect(0, 0, PrintInfo.screenWidth, layout.HeaderHeight);
DrawFilledRect(layout.TextBoxX, layout.TextBoxY, layout.TextBoxWidth, layout.TextBoxHeight);
for(;;) {}