From cb548329eaea765c3d1c0e80576ec080e922fef6 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Fri, 25 Jun 2021 10:36:15 -0700 Subject: UI: Improved File Browser Preview Image Scaling This patch enables sample filtering when scaling preview images in File Browser, improving the result a bit. Reduces blockiness and other artifacts when enlarging the images. see D11706 for details and examples. Differential Revision: https://developer.blender.org/D11706 Reviewed by Julian Eisel --- source/blender/editors/space_file/file_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file') diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 5e09692b041..6e409d2f5a4 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -398,7 +398,7 @@ static void file_draw_preview(const SpaceFile *sfile, imb->x, imb->y, GPU_RGBA8, - false, + true, imb->rect, scale, scale, -- cgit v1.2.3