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:
parent
a19a40d6d3
commit
285d4fac38
3 changed files with 5 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue