diff options
-rw-r--r-- | tests/sdl_rotozoom.c | 8 | ||||
-rw-r--r-- | tests/sdl_rotozoom.png | bin | 351517 -> 360054 bytes |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/sdl_rotozoom.c b/tests/sdl_rotozoom.c index 4bca294a..b3970f6c 100644 --- a/tests/sdl_rotozoom.c +++ b/tests/sdl_rotozoom.c @@ -7,12 +7,12 @@ #endif SDL_Surface *screen; -SDL_Surface *sprite[4]; +SDL_Surface *sprite[6]; void mainloop() { int i; SDL_Rect rect = { 0, 0, 100, 100 }; - for (i = 0; i < 4; i++) { + for (i = 0; i < 6; i++) { rect.x = i & 1 ? 200 : 0; rect.y = i & 2 ? 200 : 0; SDL_BlitSurface(sprite[i], 0, screen, &rect); @@ -29,7 +29,9 @@ int main(int argc, char **argv) { sprite[1] = SDL_CreateRGBSurface(SDL_SWSURFACE, 100, 100, 32, 0xFF000000, 0xFF0000, 0xFF00, 0xFF); SDL_FillRect(sprite[1], 0, 0xA0A0A0A0); sprite[2] = zoomSurface(sprite[0], 0.5, 0.5, SMOOTHING_ON); - sprite[3] = rotozoomSurface(sprite[1], 45, 0.5, SMOOTHING_ON); + sprite[3] = zoomSurface(sprite[1], 0.5, 0.5, SMOOTHING_ON); + sprite[4] = rotozoomSurface(sprite[0], -20, 0.3, SMOOTHING_ON); + sprite[5] = rotozoomSurface(sprite[1], 45, 0.5, SMOOTHING_ON); mainloop(); diff --git a/tests/sdl_rotozoom.png b/tests/sdl_rotozoom.png Binary files differindex d78a5ea4..3ca8da70 100644 --- a/tests/sdl_rotozoom.png +++ b/tests/sdl_rotozoom.png |