[Super-tux-commit] supertux/lib/video surface.cpp,1.12,1.13
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-10-23 11:30:21
|
Update of /cvsroot/super-tux/supertux/lib/video In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29854/lib/video Modified Files: surface.cpp Log Message: Bugfix: Fixed the visible black pixel, for instance, when jumping facing left. Index: surface.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/video/surface.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- surface.cpp 20 Oct 2004 21:08:51 -0000 1.12 +++ surface.cpp 23 Oct 2004 11:30:12 -0000 1.13 @@ -276,7 +276,7 @@ src.h = dst.h = sur_copy->h; for(int x = 0; x < sur_copy->w; x++) { - src.x = x; dst.x = sur_copy->w - x; + src.x = x; dst.x = sur_copy->w-1 - x; SDL_BlitSurface(sur_copy, &src, surface, &dst); } @@ -784,9 +784,6 @@ int SurfaceOpenGL::draw_stretched(float x, float y, int sw, int sh, Uint8 alpha, Uint32 effect) { - if(effect & SEMI_TRANSPARENT) - alpha = 128; - float pw = power_of_two(sw); float ph = power_of_two(sh); |