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 the "blank window flash" problem on windows. #386

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Fix the "blank window flash" problem on windows. #386

merged 1 commit into from
Oct 18, 2023

Conversation

Greatness7
Copy link
Contributor

@Greatness7 Greatness7 commented Jul 21, 2023

See: rust-windowing/winit#1290

Fix explained here: https://stackoverflow.com/a/74019785

Cloak attribute documentation: https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute

TL;DR: Set the Cloak window attribute on creation, hiding the window, then unset it once the first draw is complete. Cloak differs from Visible in that the window will still be composited, allowing said draw to actually work.

@geom3trik geom3trik merged commit 877877f into vizia:main Oct 18, 2023
9 checks passed
@Greatness7 Greatness7 deleted the blank_window_flash_fix branch October 19, 2023 00:57
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.

None yet

2 participants