diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2023-05-19 00:40:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-19 06:16:14 +0200 |
commit | 81b30ec3729644cb1be14eb8b7a491eb4c4c61b5 (patch) | |
tree | 55dde08ecef23652e3c64a61e74a4081503c1109 /Userland/Applications | |
parent | d6aefb1bf121b21745410c666dd612ca6fa5f016 (diff) | |
download | serenity-81b30ec3729644cb1be14eb8b7a491eb4c4c61b5.zip |
PixelPaint: Use box sampling scaling for layer thumbnails
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/PixelPaint/LayerListWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/LayerListWidget.cpp b/Userland/Applications/PixelPaint/LayerListWidget.cpp index 108877b81a..f1247fa55f 100644 --- a/Userland/Applications/PixelPaint/LayerListWidget.cpp +++ b/Userland/Applications/PixelPaint/LayerListWidget.cpp @@ -142,10 +142,10 @@ void LayerListWidget::paint_event(GUI::PaintEvent& event) } painter.draw_rect(adjusted_rect, palette().color(ColorRole::BaseText)); - painter.draw_scaled_bitmap(inner_thumbnail_rect, layer.display_bitmap(), layer.display_bitmap().rect(), 1.0f, Gfx::Painter::ScalingMode::BilinearBlend); + painter.draw_scaled_bitmap(inner_thumbnail_rect, layer.display_bitmap(), layer.display_bitmap().rect(), 1.f, Gfx::Painter::ScalingMode::BoxSampling); if (is_masked) - painter.draw_scaled_bitmap(inner_mask_thumbnail_rect, *layer.mask_bitmap(), layer.mask_bitmap()->rect(), 1.0f, Gfx::Painter::ScalingMode::BilinearBlend); + painter.draw_scaled_bitmap(inner_mask_thumbnail_rect, *layer.mask_bitmap(), layer.mask_bitmap()->rect(), 1.f, Gfx::Painter::ScalingMode::BoxSampling); Color border_color = layer.is_visible() ? palette().color(ColorRole::BaseText) : palette().color(ColorRole::DisabledText); |