diff options
| author | Max Horn | 2003-04-30 18:07:17 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-04-30 18:07:17 +0000 | 
| commit | f0dceacf4b2f3d29881d16170c5d3d7625f183ee (patch) | |
| tree | 182c4c0706ab3b948e5909d043104ecacf610d35 | |
| parent | 54f34f81c37892c0c3ceedeae559e7e61dd7b7bd (diff) | |
| download | scummvm-rg350-f0dceacf4b2f3d29881d16170c5d3d7625f183ee.tar.gz scummvm-rg350-f0dceacf4b2f3d29881d16170c5d3d7625f183ee.tar.bz2 scummvm-rg350-f0dceacf4b2f3d29881d16170c5d3d7625f183ee.zip | |
avoid unneccesary blits
svn-id: r7228
| -rw-r--r-- | backends/sdl/sdl.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index bcb8f0bb6e..6c6dd255e1 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -277,17 +277,17 @@ void OSystem_SDL::update_screen() {  		if (!_overlayVisible) {  			for(r = _dirty_rect_list; r != last_rect; ++r) {  				dst = *r; -				dst.x++;	// Shift rect by one since 2xSai needs to acces the data around -				dst.y++;	// any pixel to scale it, and we want to avoid mem access crashes.  				if (_scaler_proc == Normal1x) {  					if (SDL_BlitSurface(_screen, r, _hwscreen, &dst) != 0)  						error("SDL_BlitSurface failed: %s", SDL_GetError());  				} else { +					dst.x++;	// Shift rect by one since 2xSai needs to acces the data around +					dst.y++;	// any pixel to scale it, and we want to avoid mem access crashes.  					if (SDL_BlitSurface(_screen, r, _tmpscreen, &dst) != 0)  						error("SDL_BlitSurface failed: %s", SDL_GetError());  				}  			} -		} else { +		} else if (_scaler_proc == Normal1x) {  			for(r = _dirty_rect_list; r != last_rect; ++r) {  				dst = *r;  				if (SDL_BlitSurface(_tmpscreen, r, _hwscreen, &dst) != 0) | 
