diff options
-rw-r--r-- | backends/sdl/sdl-common.cpp | 5 |
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; |