mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Piano: Fix cliping of bottom notes when scrolling in RollWidget
fixes #2577
This commit is contained in:
parent
b8cf07166f
commit
e650be98a1
Notes:
sideshowbarker
2024-07-19 04:56:48 +09:00
Author: https://github.com/petelliott
Commit: e650be98a1
Pull-request: https://github.com/SerenityOS/serenity/pull/2716
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue