diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-01 22:41:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-01 22:41:07 +0200 |
commit | be0ad41e745c3e6177d1159e25f7d23e45b02738 (patch) | |
tree | c1845a43e3b3c67c9fadc067f2ff851e668b4213 /src/gui/Button.cpp | |
parent | 10a5669330ba978c37d984a312ba1de7a2542503 (diff) |
Use scissor for pages
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); |