Skip to content

fix (win32): Invoking viewport_resize_callback at the very start#2523

Merged
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:bugfix/resize-callback-on-startup
Jun 23, 2025
Merged

fix (win32): Invoking viewport_resize_callback at the very start#2523
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:bugfix/resize-callback-on-startup

Conversation

@v-ein
Copy link
Collaborator

@v-ein v-ein commented Jun 23, 2025


name: Pull Request
about: Create a pull request to help us improve
title: Invoking viewport_resize_callback at the very start
assignees: ''


Description:
This fixes a regression introduced in #2521. Prior to that PR, DPG was calling viewport_resize_callback at app start (on Windows), making it possible to dynamically resize GUI according to the actual client size of the viewport. It wasn't very stable and the callback was often called a dozen frames after startup, but was called anyway. PR 2521 changed that to a no-call. This PR brings the callback back, and also the call typically occurs on frame 1 (if Windows sends WM_SIZE in time, which it typically does do).

Concerning Areas:
None.

@hoffstadt hoffstadt merged commit e58ac37 into hoffstadt:master Jun 23, 2025
4 checks passed
@v-ein v-ein deleted the bugfix/resize-callback-on-startup branch November 20, 2025 10:04
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 this pull request may close these issues.

2 participants