From 01061c6fbb69750ba34408ab500ef6b5370ac593 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 11 Jun 2020 17:19:45 -0400 Subject: [PATCH] Simplify some code in platform/uwp/export (cherry picked from commit 068054002dc43d76d7073b06fe06d63bf9b1a437) --- platform/uwp/export/export.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index 37fc6fb456e..478144069ca 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -747,22 +747,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform { // TODO: Add resource creation or image rescaling to enable other scales: // 1.25, 1.5, 2.0 - real_t scales[] = { 1.0 }; - bool valid_w = false; - bool valid_h = false; - - for (int i = 0; i < 1; i++) { - - int w = ceil(p_width * scales[i]); - int h = ceil(p_height * scales[i]); - - if (w == p_image->get_width()) - valid_w = true; - if (h == p_image->get_height()) - valid_h = true; - } - - return valid_w && valid_h; + return p_width == p_image->get_width() && p_height == p_image->get_height(); } Vector _fix_manifest(const Ref &p_preset, const Vector &p_template, bool p_give_internet) const {