test/testgamecontroller.c
changeset 8202 b84a1f55075e
parent 8199 a060c6a7ae4d
child 8687 1d2ca48523a7
     1.1 --- a/test/testgamecontroller.c	Mon Feb 10 09:26:22 2014 -0300
     1.2 +++ b/test/testgamecontroller.c	Mon Feb 10 11:29:48 2014 -0500
     1.3 @@ -170,6 +170,9 @@
     1.4      SDL_RenderPresent(screen);
     1.5      SDL_RaiseWindow(window);
     1.6  
     1.7 +    /* scale for platforms that don't give you the window size you asked for. */
     1.8 +    SDL_RenderSetLogicalSize(screen, SCREEN_WIDTH, SCREEN_HEIGHT);
     1.9 +
    1.10      background = LoadTexture(screen, "controllermap.bmp", SDL_FALSE);
    1.11      button = LoadTexture(screen, "button.bmp", SDL_TRUE);
    1.12      axis = LoadTexture(screen, "axis.bmp", SDL_TRUE);
    1.13 @@ -191,7 +194,7 @@
    1.14      /* Loop, getting controller events! */
    1.15      while (!done) {
    1.16          /* blank screen, set up for drawing this frame. */
    1.17 -        SDL_SetRenderDrawColor(screen, 0x00, 0x00, 0x00, SDL_ALPHA_OPAQUE);
    1.18 +        SDL_SetRenderDrawColor(screen, 0xFF, 0xFF, 0xFF, SDL_ALPHA_OPAQUE);
    1.19          SDL_RenderClear(screen);
    1.20          SDL_RenderCopy(screen, background, NULL, NULL);
    1.21