mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 05:10:01 +03:00
new declarative ui started
This commit is contained in:
parent
bd3c7ecf35
commit
5c38e03301
4 changed files with 619 additions and 52 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue