aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorMax Horn2003-06-05 23:56:32 +0000
committerMax Horn2003-06-05 23:56:32 +0000
commit74110342157470ce4fda159b6f9327077da783ab (patch)
tree60e6b5583137e90f0a28d574a367b6ac6d54c31c /backends/sdl
parent6f9b34df1e7897f490e24f768e7e942cb105193a (diff)
downloadscummvm-rg350-74110342157470ce4fda159b6f9327077da783ab.tar.gz
scummvm-rg350-74110342157470ce4fda159b6f9327077da783ab.tar.bz2
scummvm-rg350-74110342157470ce4fda159b6f9327077da783ab.zip
make code use our coding conventions
svn-id: r8340
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl-common.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 4849b1b1ca..e6a4069356 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -198,10 +198,9 @@ void OSystem_SDL_Common::copy_rect(const byte *buf, int pitch, int x, int y, int
byte *dst = (byte *)_screen->pixels + y * _screenWidth + x;
- if (_screenWidth==pitch && pitch==w)
+ if (_screenWidth==pitch && pitch==w) {
memcpy (dst, buf, h*w);
- else
- {
+ } else {
do {
memcpy(dst, buf, w);
dst += _screenWidth;