From 8706c36fc04fde7308cf6f2ec1ef07dc6827e775 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 16 Jan 2021 16:43:12 +0100 Subject: Codechange: [Win32] Move remaing global _wnd variables into the video driver. --- src/video/win32_v.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/video/win32_v.h') diff --git a/src/video/win32_v.h b/src/video/win32_v.h index 72736ec84..85ac153bf 100644 --- a/src/video/win32_v.h +++ b/src/video/win32_v.h @@ -40,7 +40,12 @@ public: protected: HWND main_wnd; ///< Handle to system window. bool fullscreen; ///< Whether to use (true) fullscreen mode. + bool has_focus = false; ///< Does our window have system focus? Rect dirty_rect; ///< Region of the screen that needs redrawing. + int width = 0; ///< Width in pixels of our display surface. + int height = 0; ///< Height in pixels of our display surface. + int width_org = 0; ///< Original monitor resolution width, before we changed it. + int height_org = 0; ///< Original monitor resolution height, before we changed it. bool draw_threaded; ///< Whether the drawing is/may be done in a separate thread. bool buffer_locked; ///< Video buffer was locked by the main thread. -- cgit v1.2.3-54-g00ecf