Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
06805400
Unverified
Commit
06805400
authored
Jun 11, 2020
by
Aaron Franke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify some code in platform/uwp/export
parent
46e0e132
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
export.cpp
platform/uwp/export/export.cpp
+1
-17
No files found.
platform/uwp/export/export.cpp
View file @
06805400
...
...
@@ -743,23 +743,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
<
uint8_t
>
_fix_manifest
(
const
Ref
<
EditorExportPreset
>
&
p_preset
,
const
Vector
<
uint8_t
>
&
p_template
,
bool
p_give_internet
)
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment