diff options
author | truelight <truelight@openttd.org> | 2007-05-14 15:20:50 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-05-14 15:20:50 +0000 |
commit | 5f0e384ac0b2f45dbde420e35ea7a35062ed7960 (patch) | |
tree | 8b4e24cad04a15b76b5449bbb993f8b8fa1dccca /src/video/sdl_v.cpp | |
parent | f739aedf5b25be8b4cf2ac670b4ef7f42490696c (diff) | |
download | openttd-5f0e384ac0b2f45dbde420e35ea7a35062ed7960.tar.xz |
(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible
Diffstat (limited to 'src/video/sdl_v.cpp')
-rw-r--r-- | src/video/sdl_v.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 668d993b4..9a70b55a6 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -195,7 +195,7 @@ static bool CreateMainSurface(int w, int h) _screen.width = newscreen->w; _screen.height = newscreen->h; - _screen.pitch = newscreen->pitch; + _screen.pitch = newscreen->pitch / sizeof(Pixel); _sdl_screen = newscreen; InitPalette(); |