From 18a7988efcb7b5c04155cc5e9a2242e50fe435c0 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 29 Nov 2018 12:46:58 -0500 Subject: [PATCH] windows hack, golly i need to just rewrite this trash --- simpledisplay.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simpledisplay.d b/simpledisplay.d index bfbc56a..d0f31e5 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -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);