test/testsprite2.c
changeset 3536 0267b8b1595c
parent 3285 0d7b20a4a629
child 3560 5543db4239e6
     1.1 --- a/test/testsprite2.c	Mon Dec 07 10:08:24 2009 +0000
     1.2 +++ b/test/testsprite2.c	Wed Dec 09 15:56:56 2009 +0000
     1.3 @@ -141,7 +141,7 @@
     1.4  
     1.5      /* Draw a gray background */
     1.6      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
     1.7 -    SDL_RenderFill(NULL);
     1.8 +    SDL_RenderRect(NULL);
     1.9  
    1.10      /* Test points */
    1.11      SDL_SetRenderDrawColor(0xFF, 0x00, 0x00, 0xFF);
    1.12 @@ -163,25 +163,25 @@
    1.13      temp.y = 1;
    1.14      temp.w = sprite_w;
    1.15      temp.h = sprite_h;
    1.16 -    SDL_RenderFill(&temp);
    1.17 +    SDL_RenderRect(&temp);
    1.18      SDL_RenderCopy(sprite, NULL, &temp);
    1.19      temp.x = window_w-sprite_w-1;
    1.20      temp.y = 1;
    1.21      temp.w = sprite_w;
    1.22      temp.h = sprite_h;
    1.23 -    SDL_RenderFill(&temp);
    1.24 +    SDL_RenderRect(&temp);
    1.25      SDL_RenderCopy(sprite, NULL, &temp);
    1.26      temp.x = 1;
    1.27      temp.y = window_h-sprite_h-1;
    1.28      temp.w = sprite_w;
    1.29      temp.h = sprite_h;
    1.30 -    SDL_RenderFill(&temp);
    1.31 +    SDL_RenderRect(&temp);
    1.32      SDL_RenderCopy(sprite, NULL, &temp);
    1.33      temp.x = window_w-sprite_w-1;
    1.34      temp.y = window_h-sprite_h-1;
    1.35      temp.w = sprite_w;
    1.36      temp.h = sprite_h;
    1.37 -    SDL_RenderFill(&temp);
    1.38 +    SDL_RenderRect(&temp);
    1.39      SDL_RenderCopy(sprite, NULL, &temp);
    1.40  
    1.41      /* Test diagonal lines */
    1.42 @@ -304,7 +304,7 @@
    1.43      for (i = 0; i < state->num_windows; ++i) {
    1.44          SDL_SelectRenderer(state->windows[i]);
    1.45          SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.46 -        SDL_RenderFill(NULL);
    1.47 +        SDL_RenderRect(NULL);
    1.48      }
    1.49      if (LoadSprite("icon.bmp") < 0) {
    1.50          quit(2);
    1.51 @@ -350,7 +350,7 @@
    1.52                  case SDL_WINDOWEVENT_EXPOSED:
    1.53                      SDL_SelectRenderer(event.window.windowID);
    1.54                      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.55 -                    SDL_RenderFill(NULL);
    1.56 +                    SDL_RenderRect(NULL);
    1.57                      break;
    1.58                  }
    1.59                  break;