LibGfx: Nearest neighbor scaling for ScalingMode::SmoothPixels

This commit is contained in:
Tom Lynch 2025-06-23 21:38:49 +10:00 committed by Alexander Kalenik
commit b3d459f4de
Notes: github-actions[bot] 2025-06-23 14:06:54 +00:00

View file

@ -121,9 +121,9 @@ constexpr SkSamplingOptions to_skia_sampling_options(Gfx::ScalingMode scaling_mo
{
switch (scaling_mode) {
case Gfx::ScalingMode::NearestNeighbor:
case Gfx::ScalingMode::SmoothPixels:
return SkSamplingOptions(SkFilterMode::kNearest);
case Gfx::ScalingMode::BilinearBlend:
case Gfx::ScalingMode::SmoothPixels:
return SkSamplingOptions(SkFilterMode::kLinear);
case Gfx::ScalingMode::BoxSampling:
return SkSamplingOptions(SkCubicResampler::Mitchell());