summaryrefslogtreecommitdiff
path: root/src/texteff.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-07-05 12:23:54 +0000
committerpeter1138 <peter1138@openttd.org>2007-07-05 12:23:54 +0000
commit5e85e8c5e03105e43cf9f2216e993c0596d7dfec (patch)
tree52e0cc5b1e4eb6cf9aed8556873ee6833662e11f /src/texteff.cpp
parent7884a07b43fd293a2ca5b39b64df98b700959874 (diff)
downloadopenttd-5e85e8c5e03105e43cf9f2216e993c0596d7dfec.tar.xz
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
Diffstat (limited to 'src/texteff.cpp')
-rw-r--r--src/texteff.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/texteff.cpp b/src/texteff.cpp
index e5c29a4c7..d762c5bb6 100644
--- a/src/texteff.cpp
+++ b/src/texteff.cpp
@@ -11,7 +11,6 @@
#include "landscape.h"
#include "viewport.h"
#include "saveload.h"
-#include "hal.h"
#include "console.h"
#include "string.h"
#include "variables.h"
@@ -20,6 +19,7 @@
#include <stdarg.h> /* va_list */
#include "date.h"
#include "texteff.hpp"
+#include "video/video_driver.hpp"
enum {
MAX_TEXTMESSAGE_LENGTH = 200,
@@ -168,7 +168,7 @@ void UndrawTextMessage()
/* Put our 'shot' back to the screen */
blitter->CopyFromBuffer(blitter->MoveTo(_screen.dst_ptr, x, y), _textmessage_backup, width, height);
/* And make sure it is updated next time */
- _video_driver->make_dirty(x, y, width, height);
+ _video_driver->MakeDirty(x, y, width, height);
_textmessage_dirty = true;
}
@@ -248,7 +248,7 @@ void DrawTextMessage()
}
/* Make sure the data is updated next flush */
- _video_driver->make_dirty(x, y, width, height);
+ _video_driver->MakeDirty(x, y, width, height);
_textmessage_visible = true;
_textmessage_dirty = false;