summaryrefslogtreecommitdiff
path: root/test/controllermap.c
diff options
context:
space:
mode:
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>2016-09-21 23:06:38 +0200
committerPhilipp Wiesemann <philipp.wiesemann@arcor.de>2016-09-21 23:06:38 +0200
commit5cf858545edf8344a98ca27f24468eb8c0616d5e (patch)
tree1c47b986caafe1c8d2b5d15628112568c284d245 /test/controllermap.c
parentb39f94e6ac1c50f77a7310938532145c7fde73e3 (diff)
downloadsdl-5cf858545edf8344a98ca27f24468eb8c0616d5e.tar.gz
Fixed compiling of three test programs with C++.
Diffstat (limited to 'test/controllermap.c')
-rw-r--r--test/controllermap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllermap.c b/test/controllermap.c
index 3fb30d68a..e7bf0bb5e 100644
--- a/test/controllermap.c
+++ b/test/controllermap.c
@@ -47,7 +47,7 @@ typedef struct MappingStep
SDL_Texture *
-LoadTexture(SDL_Renderer *renderer, char *file, SDL_bool transparent)
+LoadTexture(SDL_Renderer *renderer, const char *file, SDL_bool transparent)
{
SDL_Surface *temp;
SDL_Texture *texture;
@@ -226,7 +226,7 @@ WatchJoystick(SDL_Joystick * joystick)
SDL_RenderCopy(screen, background, NULL, NULL);
SDL_SetTextureAlphaMod(marker, alpha);
SDL_SetTextureColorMod(marker, 10, 255, 21);
- SDL_RenderCopyEx(screen, marker, NULL, &dst, step->angle, NULL, 0);
+ SDL_RenderCopyEx(screen, marker, NULL, &dst, step->angle, NULL, SDL_FLIP_NONE);
SDL_RenderPresent(screen);
if (SDL_PollEvent(&event)) {