test/testrelative.c
changeset 6785 c094c438c0a6
parent 6318 49b2cb56db6e
child 7191 75360622e65f
     1.1 --- a/test/testrelative.c	Mon Dec 31 10:14:38 2012 -0800
     1.2 +++ b/test/testrelative.c	Mon Dec 31 10:26:38 2012 -0800
     1.3 @@ -16,10 +16,10 @@
     1.4  #include <stdio.h>
     1.5  #include <time.h>
     1.6  
     1.7 -#include "common.h"
     1.8 +#include "SDL_test_common.h"
     1.9  
    1.10  
    1.11 -static CommonState *state;
    1.12 +static SDLTest_CommonState *state;
    1.13  static SDL_Rect rect;
    1.14  
    1.15  static void
    1.16 @@ -37,14 +37,14 @@
    1.17  
    1.18   
    1.19      /* Initialize test framework */
    1.20 -    state = CommonCreateState(argv, SDL_INIT_VIDEO);
    1.21 +    state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
    1.22      if (!state) {
    1.23          return 1;
    1.24      }
    1.25      for (i = 1; i < argc;i++) {
    1.26 -        CommonArg(state, i);
    1.27 +        SDLTest_CommonArg(state, i);
    1.28      }
    1.29 -    if (!CommonInit(state)) {
    1.30 +    if (!SDLTest_CommonInit(state)) {
    1.31          return 2;
    1.32      }
    1.33  
    1.34 @@ -70,7 +70,7 @@
    1.35      while (!done) {
    1.36          /* Check for events */
    1.37          while (SDL_PollEvent(&event)) {
    1.38 -            CommonEvent(state, &event, &done);
    1.39 +            SDLTest_CommonEvent(state, &event, &done);
    1.40              switch(event.type) {
    1.41                  case SDL_MOUSEMOTION:
    1.42                  {
    1.43 @@ -93,7 +93,7 @@
    1.44          }
    1.45      }
    1.46  
    1.47 -    CommonQuit(state);
    1.48 +    SDLTest_CommonQuit(state);
    1.49      return 0;
    1.50  }
    1.51