Skip to content

Typos in description of resize_to_po2() function #10772

Closed
godotengine/godot
#105161
@Arnklit

Description

@Arnklit

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.

Activity

Arnklit

Arnklit commented on Mar 16, 2025

@Arnklit
ContributorAuthor

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.

added this to the 4.5 milestone on Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @Arnklit@Repiteo

      Issue actions

        Typos in description of resize_to_po2() function · Issue #10772 · godotengine/godot-docs