summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index dc85590..b3ad78c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);