Skip to content

Commit 1c4d696

Browse files
committed
Revert "PixelPaint: Use box sampling scaling for layer thumbnails"
This reverts commit 81b30ec.
1 parent 77db621 commit 1c4d696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Userland/Applications/PixelPaint/LayerListWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ void LayerListWidget::paint_event(GUI::PaintEvent& event)
142142
}
143143

144144
painter.draw_rect(adjusted_rect, palette().color(ColorRole::BaseText));
145-
painter.draw_scaled_bitmap(inner_thumbnail_rect, layer.display_bitmap(), layer.display_bitmap().rect(), 1.f, Gfx::Painter::ScalingMode::BoxSampling);
145+
painter.draw_scaled_bitmap(inner_thumbnail_rect, layer.display_bitmap(), layer.display_bitmap().rect(), 1.0f, Gfx::Painter::ScalingMode::BilinearBlend);
146146

147147
if (is_masked)
148-
painter.draw_scaled_bitmap(inner_mask_thumbnail_rect, *layer.mask_bitmap(), layer.mask_bitmap()->rect(), 1.f, Gfx::Painter::ScalingMode::BoxSampling);
148+
painter.draw_scaled_bitmap(inner_mask_thumbnail_rect, *layer.mask_bitmap(), layer.mask_bitmap()->rect(), 1.0f, Gfx::Painter::ScalingMode::BilinearBlend);
149149

150150
Color border_color = layer.is_visible() ? palette().color(ColorRole::BaseText) : palette().color(ColorRole::DisabledText);
151151

0 commit comments

Comments
 (0)