You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
@@ -879,6 +879,9 @@ void Image::resize_to_po2(bool p_square) {
|
|||||||
|
|
||||||
int w = next_power_of_2(width);
|
int w = next_power_of_2(width);
|
||||||
int h = next_power_of_2(height);
|
int h = next_power_of_2(height);
|
||||||
|
if (p_square) {
|
||||||
|
w = h = MAX(w, h);
|
||||||
|
}
|
||||||
|
|
||||||
if (w == width && h == height) {
|
if (w == width && h == height) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user