summaryrefslogtreecommitdiff
path: root/src/video/win32_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
commit5f0e384ac0b2f45dbde420e35ea7a35062ed7960 (patch)
tree8b4e24cad04a15b76b5449bbb993f8b8fa1dccca /src/video/win32_v.cpp
parentf739aedf5b25be8b4cf2ac670b4ef7f42490696c (diff)
downloadopenttd-5f0e384ac0b2f45dbde420e35ea7a35062ed7960.tar.xz
(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible
Diffstat (limited to 'src/video/win32_v.cpp')
-rw-r--r--src/video/win32_v.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 578f323c9..cee533c7c 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -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;
}