Skip to content

When using integer scaling, resizing the window to be smaller than content_scale_size (the original viewport size) will clip the contents. #81024

Closed
@Jordyfel

Description

Godot version

master

System information

Windows

Issue description

Follow-up to #81012 (review).

This causes contents of the viewport to be clipped out of the window, which is not desirable, and also causes a problem with the implemented Window.move_to_center() when used with embedded windows.

Steps to reproduce

Create a 2D scene, set the window stretch mode to canvas_items and stretch scale mode to integer in the project settings, and resize the window to be smaller than the original viewport size. Result demonstrated in linked comment.

Minimal reproduction project

In linked comment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions