mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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
Notes:
sideshowbarker
2024-07-18 08:40:18 +09:00
Author: https://github.com/abyesilyurt
Commit: 285d4fac38
Pull-request: https://github.com/SerenityOS/serenity/pull/8734
Reviewed-by: https://github.com/kleinesfilmroellchen
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