diff options
author | rubidium <rubidium@openttd.org> | 2007-04-18 22:10:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-04-18 22:10:36 +0000 |
commit | 7577954ced47f09803bc1b3881d47f222dbd306b (patch) | |
tree | f018095aed2d70f8386d800c8e8ac662f4b9c8fa /src/video | |
parent | 0d32783f87b9a32fa8f0bf539514ed08faebbd2a (diff) | |
download | openttd-7577954ced47f09803bc1b3881d47f222dbd306b.tar.xz |
(svn r9672) -Cleanup: lots of coding style fixes around operands.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/win32_v.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index 216b9a14b..3f5df2147 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -45,7 +45,7 @@ static void MakePalette() LOGPALETTE *pal; uint i; - pal = (LOGPALETTE*)alloca(sizeof(LOGPALETTE) + (256-1) * sizeof(PALETTEENTRY)); + pal = (LOGPALETTE*)alloca(sizeof(LOGPALETTE) + (256 - 1) * sizeof(PALETTEENTRY)); pal->palVersion = 0x300; pal->palNumEntries = 256; @@ -653,8 +653,8 @@ static bool AllocateDibSection(int w, int h) _wnd.alloced_bits = NULL; } - bi = (BITMAPINFO*)alloca(sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD)*256); - memset(bi, 0, sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD)*256); + bi = (BITMAPINFO*)alloca(sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD) * 256); + memset(bi, 0, sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD) * 256); bi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER); if (_wnd.double_size) { |