summaryrefslogtreecommitdiff
path: root/src/video/null_v.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-05-14 15:20:50 +0000
committertruelight <truelight@openttd.org>2007-05-14 15:20:50 +0000
commitd7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d (patch)
tree8b4e24cad04a15b76b5449bbb993f8b8fa1dccca /src/video/null_v.cpp
parent62fe9c2e420238ba4db54f8cf56afc25b1167051 (diff)
downloadopenttd-d7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d.tar.xz
(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible
Diffstat (limited to 'src/video/null_v.cpp')
-rw-r--r--src/video/null_v.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/null_v.cpp b/src/video/null_v.cpp
index cae43bc0c..fd15954d9 100644
--- a/src/video/null_v.cpp
+++ b/src/video/null_v.cpp
@@ -7,13 +7,13 @@
#include "../window.h"
#include "null_v.h"
-static void* _null_video_mem = NULL;
+static Pixel *_null_video_mem = NULL;
static const char* NullVideoStart(const char* const* parm)
{
_screen.width = _screen.pitch = _cur_resolution[0];
_screen.height = _cur_resolution[1];
- _null_video_mem = malloc(_cur_resolution[0] * _cur_resolution[1]);
+ _null_video_mem = (Pixel *)malloc(_cur_resolution[0] * _cur_resolution[1] * sizeof(Pixel));
return NULL;
}
@@ -27,7 +27,7 @@ static void NullVideoMainLoop()
for (i = 0; i < 1000; i++) {
GameLoop();
- _screen.dst_ptr = (Pixel*)_null_video_mem;
+ _screen.dst_ptr = _null_video_mem;
UpdateWindows();
}
}