diff --git a/src/editor/EditorMain.c b/src/editor/EditorMain.c index 40699b1..ef668de 100644 --- a/src/editor/EditorMain.c +++ b/src/editor/EditorMain.c @@ -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(;;) {}