summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-16 16:43:33 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commit3e49aff35c49190ee9f9f18fcef8db7175d0559a (patch)
tree9632ce9284acc41d73221daee7266f3795945522 /src/video
parent6776229047c0f5aac540fc9c367e4abbf5302322 (diff)
downloadopenttd-3e49aff35c49190ee9f9f18fcef8db7175d0559a.tar.xz
Codechange: Allow video drivers to handle the cursor themselves.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/video_driver.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp
index 57945862a..74bb20f4c 100644
--- a/src/video/video_driver.hpp
+++ b/src/video/video_driver.hpp
@@ -86,6 +86,20 @@ public:
}
/**
+ * Get whether the mouse cursor is drawn by the video driver.
+ * @return True if cursor drawing is done by the video driver.
+ */
+ virtual bool UseSystemCursor()
+ {
+ return false;
+ }
+
+ /**
+ * Clear all cached sprites.
+ */
+ virtual void ClearSystemSprites() {}
+
+ /**
* Whether the driver has a graphical user interface with the end user.
* Or in other words, whether we should spawn a thread for world generation
* and NewGRF scanning so the graphical updates can keep coming. Otherwise