test/testrendercopyex.c
changeset 10359 3806fd310e5b
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
     1.1 --- a/test/testrendercopyex.c	Wed Sep 21 23:06:26 2016 +0200
     1.2 +++ b/test/testrendercopyex.c	Wed Sep 21 23:06:38 2016 +0200
     1.3 @@ -45,7 +45,7 @@
     1.4  }
     1.5  
     1.6  SDL_Texture *
     1.7 -LoadTexture(SDL_Renderer *renderer, char *file, SDL_bool transparent)
     1.8 +LoadTexture(SDL_Renderer *renderer, const char *file, SDL_bool transparent)
     1.9  {
    1.10      SDL_Surface *temp;
    1.11      SDL_Texture *texture;
    1.12 @@ -126,7 +126,7 @@
    1.13      s->sprite_rect.x = (viewport.w - s->sprite_rect.w) / 2;
    1.14      s->sprite_rect.y = (viewport.h - s->sprite_rect.h) / 2;
    1.15  
    1.16 -    SDL_RenderCopyEx(s->renderer, s->sprite, NULL, &s->sprite_rect, (double)s->sprite_rect.w, center, s->scale_direction);
    1.17 +    SDL_RenderCopyEx(s->renderer, s->sprite, NULL, &s->sprite_rect, (double)s->sprite_rect.w, center, (SDL_RendererFlip)s->scale_direction);
    1.18  
    1.19      SDL_SetRenderTarget(s->renderer, NULL);
    1.20      SDL_RenderCopy(s->renderer, target, NULL, NULL);