test/testintersections.c
changeset 3536 0267b8b1595c
parent 3371 438ba87e9578
child 3596 f638ded38b8a
     1.1 --- a/test/testintersections.c	Mon Dec 07 10:08:24 2009 +0000
     1.2 +++ b/test/testintersections.c	Wed Dec 09 15:56:56 2009 +0000
     1.3 @@ -150,7 +150,7 @@
     1.4      SDL_SetRenderDrawBlendMode(SDL_BLENDMODE_NONE);
     1.5      for (i = 0; i < num_rects; ++i) {
     1.6          SDL_SetRenderDrawColor(255, 127, 0, 255);
     1.7 -        SDL_RenderFill(&rects[i]);
     1.8 +        SDL_RenderRect(&rects[i]);
     1.9      }
    1.10      SDL_SetRenderDrawBlendMode(SDL_BLENDMODE_NONE);
    1.11  }
    1.12 @@ -197,7 +197,7 @@
    1.13              SDL_Rect r;
    1.14              if (SDL_IntersectRect(&rects[i], &rects[j], &r)) {
    1.15                  SDL_SetRenderDrawColor(255, 200, 0, 255);
    1.16 -                SDL_RenderFill(&r);
    1.17 +                SDL_RenderRect(&r);
    1.18              }
    1.19          }
    1.20  
    1.21 @@ -272,7 +272,7 @@
    1.22      for (i = 0; i < state->num_windows; ++i) {
    1.23          SDL_SelectRenderer(state->windows[i]);
    1.24          SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.25 -        SDL_RenderFill(NULL);
    1.26 +        SDL_RenderRect(NULL);
    1.27      }
    1.28  
    1.29      srand(time(NULL));
    1.30 @@ -326,7 +326,7 @@
    1.31                  case SDL_WINDOWEVENT_EXPOSED:
    1.32                      SDL_SelectRenderer(event.window.windowID);
    1.33                      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.34 -                    SDL_RenderFill(NULL);
    1.35 +                    SDL_RenderRect(NULL);
    1.36                      break;
    1.37                  }
    1.38                  break;
    1.39 @@ -337,7 +337,7 @@
    1.40          for (i = 0; i < state->num_windows; ++i) {
    1.41              SDL_SelectRenderer(state->windows[i]);
    1.42              SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.43 -            SDL_RenderFill(NULL);
    1.44 +            SDL_RenderRect(NULL);
    1.45  
    1.46              DrawRects(state->windows[i]);
    1.47              DrawPoints(state->windows[i]);