Examples: A very simple example of High DPI changing handling for Win32 #3925
Demonese
announced in
Old/Archived discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
High DPI changing handling
There are some key points:
Updating and rendering during window resizing or moving
I also show another interesting thing: How to updating and rendering during window resizing or moving?
Microsift provide us a simple solution: updating and rendering in WM_PAINT.
Well, I don't think this is a good solution, because we don't know how WM_PAINT messages are generated and how often are they sent. Also, many apps/games have their own update loop via FPS limiter.
But if we don't want to write multithreaded applications and the requirement of update frequency is not high, this might be the best choise :)
Video
2021-03-16.15-50-01.mp4
Example application
Requirement:
Beta Was this translation helpful? Give feedback.
All reactions