Minor adjustments to the editor
This commit is contained in:
parent
5c4a557755
commit
28a29ecdff
|
@ -20,12 +20,18 @@ void StartEditor(int callbackID) {
|
||||||
layout.ScreenWidth = PrintInfo.screenWidth;
|
layout.ScreenWidth = PrintInfo.screenWidth;
|
||||||
layout.HeaderHeight = layout.ScreenHeight / 100 * 3;
|
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);
|
SetForegroundColor(0x000084);
|
||||||
FillScreen();
|
FillScreen();
|
||||||
|
|
||||||
SetForegroundColor(0x00BBBBBB);
|
SetForegroundColor(0x00BBBBBB);
|
||||||
|
|
||||||
DrawFilledRect(0, 0, PrintInfo.screenWidth, layout.HeaderHeight);
|
DrawFilledRect(0, 0, PrintInfo.screenWidth, layout.HeaderHeight);
|
||||||
|
DrawFilledRect(layout.TextBoxX, layout.TextBoxY, layout.TextBoxWidth, layout.TextBoxHeight);
|
||||||
|
|
||||||
for(;;) {}
|
for(;;) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user