test/testdraw2.c
changeset 3536 0267b8b1595c
parent 3371 438ba87e9578
child 3546 65848493e08e
     1.1 --- a/test/testdraw2.c	Mon Dec 07 10:08:24 2009 +0000
     1.2 +++ b/test/testdraw2.c	Wed Dec 09 15:56:56 2009 +0000
     1.3 @@ -159,7 +159,7 @@
     1.4          rect.h = rand() % (window_h / 2);
     1.5          rect.x = (rand() % window_w) - (rect.w / 2);
     1.6          rect.y = (rand() % window_w) - (rect.h / 2);
     1.7 -        SDL_RenderFill(&rect);
     1.8 +        SDL_RenderRect(&rect);
     1.9      }
    1.10      SDL_SetRenderDrawBlendMode(SDL_BLENDMODE_NONE);
    1.11  }
    1.12 @@ -231,7 +231,7 @@
    1.13      for (i = 0; i < state->num_windows; ++i) {
    1.14          SDL_SelectRenderer(state->windows[i]);
    1.15          SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.16 -        SDL_RenderFill(NULL);
    1.17 +        SDL_RenderRect(NULL);
    1.18      }
    1.19  
    1.20      srand(time(NULL));
    1.21 @@ -251,7 +251,7 @@
    1.22                  case SDL_WINDOWEVENT_EXPOSED:
    1.23                      SDL_SelectRenderer(event.window.windowID);
    1.24                      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.25 -                    SDL_RenderFill(NULL);
    1.26 +                    SDL_RenderRect(NULL);
    1.27                      break;
    1.28                  }
    1.29                  break;
    1.30 @@ -262,7 +262,7 @@
    1.31          for (i = 0; i < state->num_windows; ++i) {
    1.32              SDL_SelectRenderer(state->windows[i]);
    1.33              SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.34 -            SDL_RenderFill(NULL);
    1.35 +            SDL_RenderRect(NULL);
    1.36  
    1.37              DrawRects(state->windows[i]);
    1.38              DrawLines(state->windows[i]);