From b351cbe4902269590ef5a51cc93c56b52541ba52 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Fri, 31 Dec 2021 01:04:35 +0100 Subject: Fix #9743: [OSX] Only (re-)create touchbar sprites when requested by the main loop. --- src/video/cocoa/cocoa_v.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/video/cocoa/cocoa_v.h') 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 GetListOfMonitorRefreshRates() override; -- cgit v1.2.3-70-g09d2