diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-03 11:43:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-03 11:43:53 -0700 |
commit | 55184dbb9f73febab08f7953cb692d28fdd669cd (patch) | |
tree | fd4794402847bc469d4e1331e8ed9729c96a2449 /tests/sdl_rotozoom.c | |
parent | 8ae983c6c1965a2d64f71aa28d990682b9a36347 (diff) | |
parent | e6f1f4cc81c84ee5d3db49cd5f6a1b36a59ba291 (diff) |
Merge pull request #1015 from fhd/incoming
Support rotozoomSurface
Diffstat (limited to 'tests/sdl_rotozoom.c')
-rw-r--r-- | tests/sdl_rotozoom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/sdl_rotozoom.c b/tests/sdl_rotozoom.c index cb6295cc..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); @@ -30,6 +30,8 @@ int main(int argc, char **argv) { SDL_FillRect(sprite[1], 0, 0xA0A0A0A0); sprite[2] = zoomSurface(sprite[0], 0.5, 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(); |