Fix typo in comment of 2010-09-27T15:19:52Z!alinkmaze@gmail.com
This commit is contained in:
parent
a8eaf85d7a
commit
ae3db6d9bc
1 changed files with 2 additions and 1 deletions
|
@ -1243,12 +1243,13 @@ void tcanvas::blit(surface& surf, SDL_Rect rect)
|
|||
draw();
|
||||
|
||||
if(blur_depth_) {
|
||||
std::cout << "blur" << "\n";
|
||||
if(surf->format->BitsPerPixel == 32) {
|
||||
blur_surface(surf, rect, blur_depth_);
|
||||
} else {
|
||||
// Can't directly blur the surface if not 32 bpp.
|
||||
SDL_Rect r = rect;
|
||||
///@todo we should use: get_surface_portion(surf, r, true)
|
||||
///@todo we should use: get_surface_portion(surf, r, false)
|
||||
///no need to optimize format, since blur_surface will undo it
|
||||
surface s = get_surface_portion(surf, r, true);
|
||||
s = blur_surface(s, blur_depth_);
|
||||
|
|
Loading…
Add table
Reference in a new issue