diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2019-05-16 23:25:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 23:25:48 +0200 |
commit | 05cb337f2d2276e43eb2f7bf33362f1e78204aff (patch) | |
tree | 6cbfbade8a7ca3af6e3a0cfe5772e67fb4f76465 /editor | |
parent | 2522a432568faa32974a27ca81ead5d8aa3975ce (diff) | |
parent | 28bff3d1adce4fd7fb2e0420ff31ceb4bcc5fbad (diff) |
Merge pull request #28587 from Daw11/lanczos
Implement Lanczos image filter
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 68ebaf1226..40e05940a7 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); |