diff options
Diffstat (limited to 'src/gui/Button.cpp')
-rw-r--r-- | src/gui/Button.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/Button.cpp b/src/gui/Button.cpp index 48ab085..ad516b5 100644 --- a/src/gui/Button.cpp +++ b/src/gui/Button.cpp @@ -28,8 +28,8 @@ namespace gsr { } void Button::draw(mgl::Window &window, mgl::vec2f offset) { - mgl::Rectangle background(size); - background.set_position(position + offset); + mgl::Rectangle background(size.floor()); + background.set_position((position + offset).floor()); background.set_color(bg_color); window.draw(background); |