projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b7821
)
Bugfix: Fixed the visible black pixel, for instance, when jumping facing left.
author
Ricardo Cruz
<rick2@aeiou.pt>
Sat, 23 Oct 2004 11:30:12 +0000
(11:30 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Sat, 23 Oct 2004 11:30:12 +0000
(11:30 +0000)
SVN-Revision: 2052
lib/video/surface.cpp
patch
|
blob
|
history
diff --git
a/lib/video/surface.cpp
b/lib/video/surface.cpp
index
bcb8dc8
..
c72b5a3
100644
(file)
--- a/
lib/video/surface.cpp
+++ b/
lib/video/surface.cpp
@@
-276,7
+276,7
@@
if(filter == HORIZONTAL_FLIP_FILTER)
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
@@
SurfaceOpenGL::draw_part(float sx, float sy, float x, float y, float w, float h,
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);