diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-19 13:33:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-19 13:33:53 +0200 |
commit | 9fb81c2c4e6563cfb41bda315230206e6283075b (patch) | |
tree | 9508349461d71f471172306440a5532458906cfd /Userland | |
parent | 20537ed3da9682a4fdadf20e8859bb8d0c64dfeb (diff) | |
download | serenity-9fb81c2c4e6563cfb41bda315230206e6283075b.zip |
Revert "ImageViewer: Add support for box sampling scaling"
This reverts commit 032c2a882aee23ea4ac79ac907e9594ba311764d.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/ImageViewer/main.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp index 13d9602928..f77a72cee7 100644 --- a/Userland/Applications/ImageViewer/main.cpp +++ b/Userland/Applications/ImageViewer/main.cpp @@ -261,10 +261,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) widget->set_scaling_mode(Gfx::Painter::ScalingMode::BilinearBlend); }); - auto box_sampling_action = GUI::Action::create_checkable("B&ox Sampling", [&](auto&) { - widget->set_scaling_mode(Gfx::Painter::ScalingMode::BoxSampling); - }); - widget->on_image_change = [&](Gfx::Bitmap const* bitmap) { bool should_enable_image_actions = (bitmap != nullptr); bool should_enable_forward_actions = (widget->is_next_available() && should_enable_image_actions); @@ -349,12 +345,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) scaling_mode_group->add_action(*nearest_neighbor_action); scaling_mode_group->add_action(*smooth_pixels_action); scaling_mode_group->add_action(*bilinear_action); - scaling_mode_group->add_action(*box_sampling_action); TRY(scaling_mode_menu->try_add_action(nearest_neighbor_action)); TRY(scaling_mode_menu->try_add_action(smooth_pixels_action)); TRY(scaling_mode_menu->try_add_action(bilinear_action)); - TRY(scaling_mode_menu->try_add_action(box_sampling_action)); TRY(view_menu->try_add_separator()); TRY(view_menu->try_add_action(hide_show_toolbar_action)); |