Skip to content
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

Fix display of embedded Window #80121

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Aug 1, 2023

Fix Rect of texture to take window and stretch transform into account.
resolve #66809
resolve part of #72760

MRP: WindowsTestbed.zip (run and set "Window height" to 150)

There is no need for viewport_attach_to_screen for embedded windows, since their display is handled via Viewport::_sub_window_update.

image image

Updated 2023-08-05: Draw black bars at the sides, that aren't covered by the content.
Updated 2024-12-16: Rebased on master for good measure. insert const expression, fix rounding issue.

@Sauermann Sauermann added this to the 4.2 milestone Aug 1, 2023
@Sauermann Sauermann requested a review from a team as a code owner August 1, 2023 15:07
@Sauermann Sauermann force-pushed the fix-embedded-window-stretch branch from 321f810 to 36ddfc7 Compare August 5, 2023 14:37
@Sauermann Sauermann force-pushed the fix-embedded-window-stretch branch from 36ddfc7 to 4bcd1da Compare August 5, 2023 14:41
@AThousandShips AThousandShips modified the milestones: 4.2, 4.3 Nov 1, 2023
@Sauermann Sauermann changed the title Fix displaying of embedded Window Fix display of embedded Window Mar 7, 2024
@clayjohn clayjohn modified the milestones: 4.3, 4.4 Jul 24, 2024
@clayjohn clayjohn added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Jul 24, 2024
Copy link
Member

@Geometror Geometror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased locally on current master and tested. I can confirm it fixes the linked issue.

@Sauermann Sauermann force-pushed the fix-embedded-window-stretch branch from 4bcd1da to 69b30e6 Compare December 16, 2024 21:49
Fix Rect of texture to take window and stretch transform into account.

There is no need for `viewport_attach_to_screen` for embedded windows,
since their display is handled via `Viewport::_sub_window_update`.
@Sauermann Sauermann force-pushed the fix-embedded-window-stretch branch from 69b30e6 to 0eff41d Compare December 17, 2024 07:38
@Repiteo Repiteo merged commit a6e89ba into godotengine:master Dec 20, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 20, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:core topic:gui topic:rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows content is displayed wrong when embedded
5 participants