1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

ImageViewer: Use the same function to resize the window

ImageViewer used two different logic to resize the display window, which
leads to confusing behaviour for rotate function. Now all the resizing
behaviour goes through the existing resize_window function.
This commit is contained in:
Aziz Berkay Yesilyurt 2021-07-13 23:34:12 +02:00 committed by Andreas Kling
parent a19a40d6d3
commit 285d4fac38
3 changed files with 5 additions and 13 deletions

View file

@ -130,7 +130,7 @@ void ViewWidget::set_scale(int scale)
m_bitmap_rect.set_size(new_size);
if (on_scale_change)
on_scale_change(m_scale, m_bitmap_rect);
on_scale_change(m_scale);
relayout();
}