summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_v.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-12-31 01:04:35 +0100
committerMichael Lutz <michi@icosahedron.de>2022-01-01 12:19:30 +0100
commitb351cbe4902269590ef5a51cc93c56b52541ba52 (patch)
treedbdcd424ab68364ca4ca02bbb8e1b96403e023f4 /src/video/cocoa/cocoa_v.h
parentf40e82a19d9f902979377d913507990d9bcf5621 (diff)
downloadopenttd-b351cbe4902269590ef5a51cc93c56b52541ba52.tar.xz
Fix #9743: [OSX] Only (re-)create touchbar sprites when requested by the main loop.
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r--src/video/cocoa/cocoa_v.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h
index 3d3db5454..3fe79ac90 100644
--- a/src/video/cocoa/cocoa_v.h
+++ b/src/video/cocoa/cocoa_v.h
@@ -22,7 +22,8 @@ extern bool _cocoa_video_started;
class VideoDriver_Cocoa : public VideoDriver {
private:
- Dimension orig_res; ///< Saved window size for non-fullscreen mode.
+ Dimension orig_res; ///< Saved window size for non-fullscreen mode.
+ bool refresh_sys_sprites; ///< System sprites need refreshing.
public:
bool setup; ///< Window is currently being created.
@@ -45,6 +46,9 @@ public:
bool ChangeResolution(int w, int h) override;
bool ToggleFullscreen(bool fullscreen) override;
+ void ClearSystemSprites() override;
+ void PopulateSystemSprites() override;
+
void EditBoxLostFocus() override;
std::vector<int> GetListOfMonitorRefreshRates() override;