diff options
author | truelight <truelight@openttd.org> | 2007-05-14 15:20:50 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-05-14 15:20:50 +0000 |
commit | d7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d (patch) | |
tree | 8b4e24cad04a15b76b5449bbb993f8b8fa1dccca /src/video/dedicated_v.cpp | |
parent | 62fe9c2e420238ba4db54f8cf56afc25b1167051 (diff) | |
download | openttd-d7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d.tar.xz |
(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible
Diffstat (limited to 'src/video/dedicated_v.cpp')
-rw-r--r-- | src/video/dedicated_v.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index b3e11a118..046dc2ac8 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -112,7 +112,7 @@ static void CloseWindowsConsoleThread() #endif -static void *_dedicated_video_mem; +static Pixel *_dedicated_video_mem; extern bool SafeSaveOrLoad(const char *filename, int mode, int newgm); extern void SwitchMode(int new_mode); @@ -122,7 +122,7 @@ static const char *DedicatedVideoStart(const char * const *parm) { _screen.width = _screen.pitch = _cur_resolution[0]; _screen.height = _cur_resolution[1]; - _dedicated_video_mem = malloc(_cur_resolution[0]*_cur_resolution[1]); + _dedicated_video_mem = (Pixel *)malloc(_cur_resolution[0] * _cur_resolution[1] * sizeof(Pixel)); SetDebugString("net=6"); @@ -283,7 +283,7 @@ static void DedicatedVideoMainLoop() next_tick = cur_ticks + 30; GameLoop(); - _screen.dst_ptr = (Pixel*)_dedicated_video_mem; + _screen.dst_ptr = _dedicated_video_mem; UpdateWindows(); } CSleep(1); |