aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-27 13:53:19 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-27 13:53:19 +0000
commit5f6fb9fb0d5cf523d810e5d3812d8172c5eaa50e (patch)
tree4413a6a514d855609e4dfcfb80a3efc605f386b2 /src/viewport.h
parentb17cb802d0b008e886e194972e661a65b0b28aa9 (diff)
downloadimv-5f6fb9fb0d5cf523d810e5d3812d8172c5eaa50e.tar.gz
Retrive viewport image dimensions from texture, not loader
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/viewport.h b/src/viewport.h
index ad3ac23..606c155 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <SDL2/SDL.h>
-#include "loader.h"
+#include "texture.h"
struct imv_viewport {
SDL_Window *window;
@@ -40,15 +40,15 @@ 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_loader*);
+void imv_viewport_toggle_playing(struct imv_viewport*, struct imv_texture*);
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_loader*, enum imv_zoom_source, int);
-void imv_viewport_center(struct imv_viewport*, const struct imv_loader*);
-void imv_viewport_scale_to_actual(struct imv_viewport*, const struct imv_loader*);
-void imv_viewport_scale_to_window(struct imv_viewport*, const struct imv_loader*);
+void imv_viewport_zoom(struct imv_viewport*, const struct imv_texture*, enum imv_zoom_source, int);
+void imv_viewport_center(struct imv_viewport*, const struct imv_texture*);
+void imv_viewport_scale_to_actual(struct imv_viewport*, const struct imv_texture*);
+void imv_viewport_scale_to_window(struct imv_viewport*, const struct imv_texture*);
void imv_viewport_set_redraw(struct imv_viewport*);
void imv_viewport_set_title(struct imv_viewport*, char*);
-void imv_viewport_updated(struct imv_viewport*, struct imv_loader*);
+void imv_viewport_updated(struct imv_viewport*, struct imv_texture*);
#endif