mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 17:27:05 +09:00
Use scissor for pages
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user