summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-11 22:45:11 +0000
committerrubidium <rubidium@openttd.org>2008-08-11 22:45:11 +0000
commitd0c1a989a4226cc06a50b1a8c95b9ca8f0b9599e (patch)
tree96b3b7c215db821df9b9268eb9af5a55ee1200ce /src/video
parent6995365535370da08116d49a30ebd84d56e7d8ff (diff)
downloadopenttd-d0c1a989a4226cc06a50b1a8c95b9ca8f0b9599e.tar.xz
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa/event.mm2
-rw-r--r--src/video/sdl_v.cpp2
-rw-r--r--src/video/win32_v.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm
index cee4e8fe2..a196ca4b0 100644
--- a/src/video/cocoa/event.mm
+++ b/src/video/cocoa/event.mm
@@ -694,7 +694,7 @@ void QZ_GameLoop()
st += GetTick() - st0;
#endif
_screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer();
- DrawChatMessage();
+ NetworkDrawChatMessage();
DrawMouseCursor();
_cocoa_subdriver->Draw();
}
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index d6e274fc0..4ccf90abe 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -518,7 +518,7 @@ void VideoDriver_SDL::MainLoop()
} else {
SDL_CALL SDL_Delay(1);
_screen.dst_ptr = _sdl_screen->pixels;
- DrawChatMessage();
+ NetworkDrawChatMessage();
DrawMouseCursor();
DrawSurfaceToScreen();
}
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 8dcab88e9..9f5c32045 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -890,7 +890,7 @@ void VideoDriver_Win32::MainLoop()
GdiFlush();
#endif
_screen.dst_ptr = _wnd.buffer_bits;
- DrawChatMessage();
+ NetworkDrawChatMessage();
DrawMouseCursor();
}
}