More test coverage
authorSam Lantinga <slouken@libsdl.org>
Sat, 19 Sep 2009 05:45:49 +0000
changeset 32667856dfe3a44f
parent 3265 8f534bf37bef
child 3267 7690aa2f5b74
More test coverage
test/testsprite2.c
     1.1 --- a/test/testsprite2.c	Sat Sep 19 05:43:15 2009 +0000
     1.2 +++ b/test/testsprite2.c	Sat Sep 19 05:45:49 2009 +0000
     1.3 @@ -153,29 +153,31 @@
     1.4      SDL_RenderLine(0, 1, 0, window_h-2);
     1.5      SDL_RenderLine(window_w-1, 1, window_w-1, window_h-2);
     1.6  
     1.7 -    /* Test fill */
     1.8 +    /* Test fill and copy */
     1.9      SDL_SetRenderDrawColor(0xFF, 0xFF, 0xFF, 0xFF);
    1.10 +    temp.x = 1;
    1.11 +    temp.y = 1;
    1.12 +    temp.w = sprite_w;
    1.13 +    temp.h = sprite_h;
    1.14 +    SDL_RenderFill(&temp);
    1.15 +    SDL_RenderCopy(sprite, NULL, &temp);
    1.16      temp.x = window_w-sprite_w-1;
    1.17      temp.y = 1;
    1.18      temp.w = sprite_w;
    1.19      temp.h = sprite_h;
    1.20      SDL_RenderFill(&temp);
    1.21 +    SDL_RenderCopy(sprite, NULL, &temp);
    1.22      temp.x = 1;
    1.23      temp.y = window_h-sprite_h-1;
    1.24      temp.w = sprite_w;
    1.25      temp.h = sprite_h;
    1.26      SDL_RenderFill(&temp);
    1.27 -
    1.28 -    /* Test copy */
    1.29 -    temp.x = 1;
    1.30 -    temp.y = 1;
    1.31 -    temp.w = sprite_w;
    1.32 -    temp.h = sprite_h;
    1.33      SDL_RenderCopy(sprite, NULL, &temp);
    1.34      temp.x = window_w-sprite_w-1;
    1.35      temp.y = window_h-sprite_h-1;
    1.36      temp.w = sprite_w;
    1.37      temp.h = sprite_h;
    1.38 +    SDL_RenderFill(&temp);
    1.39      SDL_RenderCopy(sprite, NULL, &temp);
    1.40  
    1.41      /* Test diagonal lines */