Explorar o código

Fixed build

The flip directions aren't 1 and -1, just use SDL_FLIP_NONE for now
Sam Lantinga %!s(int64=2) %!d(string=hai) anos
pai
achega
8c7f5b73e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/testrendercopyex.c

+ 1 - 1
test/testrendercopyex.c

@@ -78,7 +78,7 @@ static void Draw(DrawState *s)
     s->sprite_rect.x = (float)((viewport.w - s->sprite_rect.w) / 2);
     s->sprite_rect.y = (float)((viewport.h - s->sprite_rect.h) / 2);
 
-    SDL_RenderTextureRotated(s->renderer, s->sprite, NULL, &s->sprite_rect, (double)s->sprite_rect.w, center, (SDL_RendererFlip)s->scale_direction);
+    SDL_RenderTextureRotated(s->renderer, s->sprite, NULL, &s->sprite_rect, (double)s->sprite_rect.w, center, SDL_FLIP_NONE);
 
     SDL_SetRenderTarget(s->renderer, NULL);
     SDL_RenderTexture(s->renderer, target, NULL, NULL);