summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorDaw11 <davidebusterna@gmail.com>2019-05-05 14:03:52 +0200
committerDaw11 <davidebusterna@gmail.com>2019-05-05 14:03:56 +0200
commit28bff3d1adce4fd7fb2e0420ff31ceb4bcc5fbad (patch)
tree17c2b7aabd91d99a5734d5e0ab5ef78919d49f70 /editor/editor_node.cpp
parentd8617f237acbed21ca4b1a9e7df2d28b32e511b1 (diff)
Implement Lanczos image filter
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 8703076a57..d6b4825249 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -1015,8 +1015,7 @@ void EditorNode::_save_scene_with_preview(String p_file, int p_idx) {
y = (img->get_height() - size) / 2;
img->crop_from_point(x, y, size, size);
- // We could get better pictures with better filters
- img->resize(preview_size, preview_size, Image::INTERPOLATE_CUBIC);
+ img->resize(preview_size, preview_size, Image::INTERPOLATE_LANCZOS);
}
img->convert(Image::FORMAT_RGB8);