mirror of https://github.com/adamdruppe/arsd.git
windows hack, golly i need to just rewrite this trash
This commit is contained in:
parent
05850b77b9
commit
18a7988efc
|
@ -13498,6 +13498,9 @@ mixin template ExperimentalTextComponent() {
|
|||
part.letterXs = null;
|
||||
|
||||
auto size = painter.textSize(part.text);
|
||||
version(Windows)
|
||||
if(part.text.length && part.text[$-1] == '\n')
|
||||
size.height /= 2; // windows counts the new line at the end, but we don't want that
|
||||
|
||||
part.boundingBox = Rectangle(pos.x, pos.y, pos.x + size.width, pos.y + size.height);
|
||||
|
||||
|
|
Loading…
Reference in New Issue