From be0ad41e745c3e6177d1159e25f7d23e45b02738 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Aug 2024 22:41:07 +0200 Subject: Use scissor for pages --- src/gui/Button.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/Button.cpp') 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); -- cgit v1.2.3