diff options
Diffstat (limited to 'src/sandbox')
-rw-r--r-- | src/sandbox/sprite.c | 4 | ||||
-rw-r--r-- | src/sandbox/sprite_gif.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sandbox/sprite.c b/src/sandbox/sprite.c index 0223997..dfddac7 100644 --- a/src/sandbox/sprite.c +++ b/src/sandbox/sprite.c @@ -70,8 +70,8 @@ int main(int argc, char *argv[]) { t1_src.y = (t1_src.y + t1_src.h) % t1_size.h; /* Change dest rectangle to move the sprite if the animation cycle restart */ if (t1_src.y == 0) { - t1_dst.x++; - t1_dst.y++; + t1_dst.x +=2; + t1_dst.y +=2; } SDL_Delay(50); diff --git a/src/sandbox/sprite_gif.c b/src/sandbox/sprite_gif.c index d2a3a70..713b007 100644 --- a/src/sandbox/sprite_gif.c +++ b/src/sandbox/sprite_gif.c @@ -72,8 +72,8 @@ int main(int argc, char *argv[]) { t1_src.y = (t1_src.y + t1_src.h) % t1_size.h; /* Change dest rectangle to move the sprite if the animation cycle restart */ if (t1_src.y == 0) { - t1_dst.x++; - t1_dst.y++; + t1_dst.x +=2; + t1_dst.y +=2; } SDL_Delay(50); |