Qt: Send SizeChanged on DPI changes

This commit is contained in:
TellowKrinkle
2023-06-10 02:12:17 -05:00
parent d3110b9521
commit fc53dca7bd
2 changed files with 18 additions and 2 deletions

View File

@ -47,6 +47,9 @@ private:
static constexpr int MOUSE_HIDE_DELAY = 3000;
QTimer* m_mouse_timer;
QPoint m_last_mouse{};
int m_last_window_width = 0;
int m_last_window_height = 0;
float m_last_window_scale = 0;
bool m_cursor_locked = false;
bool m_lock_cursor_on_next_activation = false;
bool m_dont_lock_cursor_on_show = false;