mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 11:53:48 +00:00
Merge branch 'master' of github.com:wesnoth/wesnoth-old
This commit is contained in:
commit
91f3c75eda
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user