projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20071001-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 66320a5b296d12265eea5b96e13c454eafae1432..ab3ac82d20e80fa80ebb2f1ea29ad41f790a2da0 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-402,8
+402,6
@@
void SDLFadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height,
int src_x = x, src_y = y;
int dst_x = x, dst_y = y;
unsigned int time_last, time_current;
int src_x = x, src_y = y;
int dst_x = x, dst_y = y;
unsigned int time_last, time_current;
- float alpha;
- int alpha_final;
src_rect.x = src_x;
src_rect.y = src_y;
src_rect.x = src_x;
src_rect.y = src_y;
@@
-498,6
+496,7
@@
void SDLFadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height,
int ypos[melt_columns];
int max_steps = height / 8 + 32;
int steps_done = 0;
int ypos[melt_columns];
int max_steps = height / 8 + 32;
int steps_done = 0;
+ float steps = 0;
int i;
SDL_BlitSurface(surface_source, &src_rect, surface_screen, &dst_rect);
int i;
SDL_BlitSurface(surface_source, &src_rect, surface_screen, &dst_rect);
@@
-520,7
+519,6
@@
void SDLFadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height,
while (!done)
{
while (!done)
{
- float steps;
int steps_final;
time_last = time_current;
int steps_final;
time_last = time_current;
@@
-610,6
+608,9
@@
void SDLFadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height,
}
else
{
}
else
{
+ float alpha;
+ int alpha_final;
+
for (alpha = 0.0; alpha < 255.0;)
{
time_last = time_current;
for (alpha = 0.0; alpha < 255.0;)
{
time_last = time_current;