summaryrefslogtreecommitdiff
path: root/src/video/video_driver.hpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-10-04 21:35:40 +0000
committermichi_cc <michi_cc@openttd.org>2011-10-04 21:35:40 +0000
commit6dbb050a32122209497d9b41c373b3b759602883 (patch)
treed4a463d465885f4eb4f376ac548f71d68b09995b /src/video/video_driver.hpp
parent12e28de8187808b166541ee8fa339e38037538fd (diff)
downloadopenttd-6dbb050a32122209497d9b41c373b3b759602883.tar.xz
(svn r22999) -Codechange: Allow changing the blitter during the running game.
Diffstat (limited to 'src/video/video_driver.hpp')
-rw-r--r--src/video/video_driver.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp
index 76f624cdb..4e8a2a0a1 100644
--- a/src/video/video_driver.hpp
+++ b/src/video/video_driver.hpp
@@ -48,6 +48,15 @@ public:
virtual bool ToggleFullscreen(bool fullscreen) = 0;
/**
+ * Callback invoked after the blitter was changed.
+ * @return True if no error.
+ */
+ virtual bool AfterBlitterChange()
+ {
+ return true;
+ }
+
+ /**
* 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