aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-28 01:33:19 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-28 01:33:19 +0000
commitc9a12a93fed9cb58631dd437b30a98081c297e24 (patch)
treee9ace75890dff23f3b154563ba39b57f146eef3f /src
parent59addba3db9a87d50bed99ba3ecb9838e0282707 (diff)
downloadimv-c9a12a93fed9cb58631dd437b30a98081c297e24.tar.gz
Remove unused parameter
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/viewport.c2
-rw-r--r--src/viewport.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 44f119c..2c90066 100644
--- a/src/main.c
+++ b/src/main.c
@@ -285,7 +285,7 @@ int main(int argc, char** argv)
case SDLK_x: imv_navigator_remove_current_path(&nav); break;
case SDLK_f: imv_viewport_toggle_fullscreen(&view); break;
case SDLK_PERIOD: imv_loader_load_next_frame(&ldr); break;
- case SDLK_SPACE: imv_viewport_toggle_playing(&view, &tex);break;
+ case SDLK_SPACE: imv_viewport_toggle_playing(&view); ;break;
case SDLK_p: puts(imv_navigator_get_current_path(&nav));break;
case SDLK_d:
g_options.overlay = !g_options.overlay;
diff --git a/src/viewport.c b/src/viewport.c
index a4004ad..da6b6f5 100644
--- a/src/viewport.c
+++ b/src/viewport.c
@@ -43,7 +43,7 @@ void imv_viewport_toggle_fullscreen(struct imv_viewport *view)
}
}
-void imv_viewport_toggle_playing(struct imv_viewport *view, struct imv_texture *tex)
+void imv_viewport_toggle_playing(struct imv_viewport *view)
{
view->playing = !view->playing;
}
diff --git a/src/viewport.h b/src/viewport.h
index 606c155..6668725 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -40,7 +40,7 @@ void imv_init_viewport(struct imv_viewport *view, SDL_Window *window);
void imv_destroy_viewport(struct imv_viewport *view);
void imv_viewport_toggle_fullscreen(struct imv_viewport*);
-void imv_viewport_toggle_playing(struct imv_viewport*, struct imv_texture*);
+void imv_viewport_toggle_playing(struct imv_viewport*);
void imv_viewport_reset(struct imv_viewport*);
void imv_viewport_move(struct imv_viewport*, int, int);
void imv_viewport_zoom(struct imv_viewport*, const struct imv_texture*, enum imv_zoom_source, int);