(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

@@ -671,7 +671,7 @@ static bool AllocateDibSection(int w, int h)
if (_wnd.double_size) {
w = ALIGN(w, 4);
_wnd.alloced_bits = _wnd.buffer_bits = (Pixel*)malloc(w * h);
_wnd.alloced_bits = _wnd.buffer_bits = (Pixel *)malloc(w * h * sizeof(Pixel));
w *= 2;
h *= 2;
}