diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-16 16:43:12 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | 8706c36fc04fde7308cf6f2ec1ef07dc6827e775 (patch) | |
tree | ea29f8a64e53e214fd7b49c47019407162ccb72b /src/video/win32_v.h | |
parent | d6b67758881ba24d532d42e211a5fddcc1cdd309 (diff) | |
download | openttd-8706c36fc04fde7308cf6f2ec1ef07dc6827e775.tar.xz |
Codechange: [Win32] Move remaing global _wnd variables into the video driver.
Diffstat (limited to 'src/video/win32_v.h')
-rw-r--r-- | src/video/win32_v.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |