diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/macgui/mactextwindow.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/graphics/macgui/mactextwindow.h b/graphics/macgui/mactextwindow.h index f302f3724d..11b845f840 100644 --- a/graphics/macgui/mactextwindow.h +++ b/graphics/macgui/mactextwindow.h @@ -29,8 +29,13 @@ namespace Graphics { struct SelectedText { - int startX = 0, startY = 0; - int endX = 0, endY = 0; + int startX, startY; + int endX, endY; + + SelectedText() { + startX = startY = 0; + endX = endY = 0; + } bool needsRender() { return startX != endX || startY != endY; |