new declarative ui started

This commit is contained in:
Adam D. Ruppe 2020-11-02 12:13:04 -05:00
parent bd3c7ecf35
commit 5c38e03301
4 changed files with 619 additions and 52 deletions

View file

@ -4004,8 +4004,15 @@ mixin template SdpyDraw() {
this.font = new OperatingSystemFont("Courier New", size, FontWeight.medium);
}
fontWidth = font.averageWidth;
fontHeight = font.height;
if(font.isNull) {
// no way to really tell... just guess so it doesn't crash but like eeek.
fontWidth = size / 2;
fontHeight = size;
} else {
fontWidth = font.averageWidth;
fontHeight = font.height;
}
}
bool lastDrawAlternativeScreen;