summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2023-05-19 00:40:29 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-19 18:36:36 +0200
commitfae9a050390ebae22f40811c712e6c06600d6c90 (patch)
tree937fd7a624e456fcd538f6409c6a9d41881c1a41 /Userland/Applications
parentaebc260940a8e78fdd2fcbf1d09074976312c8a5 (diff)
downloadserenity-fae9a050390ebae22f40811c712e6c06600d6c90.zip
PixelPaint: Use box sampling scaling for layer thumbnails
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/PixelPaint/LayerListWidget.cpp4
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);