[Bf-blender-cvs] [cb548329eae] master: UI: Improved File Browser Preview Image Scaling
Harley Acheson
noreply at git.blender.org
Fri Jun 25 19:37:52 CEST 2021
Commit: cb548329eaea765c3d1c0e80576ec080e922fef6
Author: Harley Acheson
Date: Fri Jun 25 10:36:15 2021 -0700
Branches: master
https://developer.blender.org/rBcb548329eaea765c3d1c0e80576ec080e922fef6
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
===================================================================
M source/blender/editors/space_file/file_draw.c
===================================================================
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,
More information about the Bf-blender-cvs
mailing list