diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,10 +3,12 @@ #include "logging.h" #include "resources/image.h" #include "resources/map.h" +#include "viewport.h" int main(void) { + SDL_Surface *screen; struct map *map; struct image *img; struct map_tileset *ts; @@ -15,6 +17,7 @@ main(void) SDL_Rect imgrect, surfacerect; init(); + screen = init_viewport(240, 160, 8)->screen; map = map_get("data/forest1.tmx"); debug("Map dimensions: %dx%d", map->width, map->height); |