Skip to content

Typos in description of resize_to_po2() function #10772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Arnklit opened this issue Mar 16, 2025 · 1 comment · May be fixed by godotengine/godot#105161
Open

Typos in description of resize_to_po2() function #10772

Arnklit opened this issue Mar 16, 2025 · 1 comment · May be fixed by godotengine/godot#105161

Comments

@Arnklit
Copy link
Contributor

Arnklit commented Mar 16, 2025

Your Godot version:
4.4.stable

Issue description:
Typos in description of resize_to_po2() function

URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/class_image.html#class-image-method-resize-to-po2

Current:
Resizes the image to the nearest power of 2 for the width and height. If square is true then set width and height to be the same. New pixels are calculated using the interpolation mode defined via Interpolation constants.

Expected:
Resizes the image to the nearest power of 2 for the width and height. If square is true then the width and height have to be the same. New pixels are calculated using the interpolation mode defined via Interpolation constants.

OR

Resizes the image to the nearest power of 2 for the width and height. If square is true it sets width and height to be the same. New pixels are calculated using the interpolation mode defined via Interpolation constants.

@Arnklit
Copy link
Contributor Author

Arnklit commented Mar 16, 2025

Not completely sure whether this is a typo, or just hard for me to read. I just don't see how it can make sense that it asks you to "set" the width and height to the same when you don't set the width and height when using this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant