Fix #11516: Adjust window size by interface scale during ReInit.

To simplify this and ensure that scaling only occurs once, regardless of
resize nesting, each window now remembers interface scale.
This commit is contained in:
Peter Nelson
2023-11-29 12:35:02 +00:00
committed by Peter Nelson
parent e2425b72c1
commit 3317e29847
2 changed files with 6 additions and 3 deletions

View File

@@ -242,6 +242,8 @@ public:
WindowClass window_class; ///< Window class
WindowNumber window_number; ///< Window number within the window class
int scale; ///< Scale of this window -- used to determine how to resize.
uint8_t timeout_timer; ///< Timer value of the WF_TIMEOUT for flags.
uint8_t white_border_timer; ///< Timer value of the WF_WHITE_BORDER for flags.