(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible

This commit is contained in:
truelight
2007-05-14 15:20:50 +00:00
parent 62fe9c2e42
commit d7b4fb80d0
6 changed files with 15 additions and 15 deletions

View File

@@ -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();
}
}