Merge branch 'master' of github.com:wesnoth/wesnoth-old

This commit is contained in:
David Mikos 2013-12-23 16:11:43 +10:30
commit 91f3c75eda

View File

@ -1459,10 +1459,8 @@ void tcanvas::blit(surface& surf, SDL_Rect rect)
} else { } else {
// Can't directly blur the surface if not 32 bpp. // Can't directly blur the surface if not 32 bpp.
SDL_Rect r = rect; SDL_Rect r = rect;
///@todo we should use: get_surface_portion(surf, r, false) surface s = get_surface_portion(surf, r, false);
///no need to optimize format, since blur_surface will undo it s = blur_surface(s, blur_depth_, false);
surface s = get_surface_portion(surf, r, true);
s = blur_surface(s, blur_depth_);
sdl_blit(s, NULL, surf, &rect); sdl_blit(s, NULL, surf, &rect);
} }
} }