diff options
author | Peter Elliott <pelliott@ualberta.ca> | 2020-07-06 16:15:12 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-11 18:51:41 +0200 |
commit | e650be98a1f65abeb197683f7732dfb96cc1888e (patch) | |
tree | 47f6b5679683b876d776c5724b42d9198696eee8 /Applications/Piano | |
parent | b8cf07166f838ca34588edf68560fcb75d05888e (diff) | |
download | serenity-e650be98a1f65abeb197683f7732dfb96cc1888e.zip |
Piano: Fix cliping of bottom notes when scrolling in RollWidget
fixes #2577
Diffstat (limited to 'Applications/Piano')
-rw-r--r-- | Applications/Piano/RollWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/RollWidget.cpp b/Applications/Piano/RollWidget.cpp index 738bef8f9e..3c6b4b627d 100644 --- a/Applications/Piano/RollWidget.cpp +++ b/Applications/Piano/RollWidget.cpp @@ -87,8 +87,8 @@ void RollWidget::paint_event(GUI::PaintEvent& event) GUI::Painter painter(*this); painter.translate(frame_thickness(), frame_thickness()); - painter.translate(-horizontal_note_offset_remainder, -note_offset_remainder); painter.add_clip_rect(event.rect()); + painter.translate(-horizontal_note_offset_remainder, -note_offset_remainder); for (int y = 0; y < notes_to_paint; ++y) { int y_pos = y * note_height; |