test/testnative.c
changeset 3596 f638ded38b8a
parent 3536 0267b8b1595c
child 3601 240a7700a271
     1.1 --- a/test/testnative.c	Fri Dec 18 08:19:18 2009 +0000
     1.2 +++ b/test/testnative.c	Wed Dec 23 01:55:00 2009 +0000
     1.3 @@ -83,7 +83,7 @@
     1.4      /* Move the sprite, bounce at the wall, and draw */
     1.5      n = 0;
     1.6      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
     1.7 -    SDL_RenderRect(NULL);
     1.8 +    SDL_RenderClear();
     1.9      for (i = 0; i < NUM_SPRITES; ++i) {
    1.10          position = &positions[i];
    1.11          velocity = &velocities[i];
    1.12 @@ -158,7 +158,7 @@
    1.13      /* Clear the window, load the sprite and go! */
    1.14      SDL_SelectRenderer(window);
    1.15      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.16 -    SDL_RenderRect(NULL);
    1.17 +    SDL_RenderClear();
    1.18  
    1.19      sprite = LoadSprite(window, "icon.bmp");
    1.20      if (!sprite) {
    1.21 @@ -199,7 +199,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_RenderRect(NULL);
    1.26 +                    SDL_RenderClear();
    1.27                      break;
    1.28                  }
    1.29                  break;