diff options
Diffstat (limited to 'Widgets/MsgBox.cpp')
-rw-r--r-- | Widgets/MsgBox.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Widgets/MsgBox.cpp b/Widgets/MsgBox.cpp index 4827a5fca9..9c8a41f1db 100644 --- a/Widgets/MsgBox.cpp +++ b/Widgets/MsgBox.cpp @@ -10,14 +10,14 @@ void MsgBox(Window* owner, String&& text) Font& font = Font::defaultFont(); auto screenRect = AbstractScreen::the().rect(); - unsigned textWidth = text.length() * font.glyphWidth() + 8; - unsigned textHeight = font.glyphHeight() + 8; - unsigned horizontalPadding = 16; - unsigned verticalPadding = 16; - unsigned buttonWidth = 60; - unsigned buttonHeight = 20; - unsigned windowWidth = textWidth + horizontalPadding * 2; - unsigned windowHeight = textHeight + buttonHeight + verticalPadding * 3; + int textWidth = text.length() * font.glyphWidth() + 8; + int textHeight = font.glyphHeight() + 8; + int horizontalPadding = 16; + int verticalPadding = 16; + int buttonWidth = 60; + int buttonHeight = 20; + int windowWidth = textWidth + horizontalPadding * 2; + int windowHeight = textHeight + buttonHeight + verticalPadding * 3; Rect windowRect( screenRect.center().x() - windowWidth / 2, |