From 7aee23711d3bc2c1fa3f8fd56e14075e895f3263 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 05 Mar 2013 02:42:01 -0500 Subject: Change the viewport size. --- diff --git a/src/area.c b/src/area.c index e605c6c..0c3bc3a 100644 --- a/src/area.c +++ b/src/area.c @@ -178,8 +178,8 @@ render_area_to_surface(struct area *area, SDL_Rect *arearect, SDL_MapRGB(surface->format, 0, 0, 0)); /* For demo */ - tmprect.x = dstrect.x + 120 - 8; - tmprect.y = dstrect.y + 80 - 12; + tmprect.x = dstrect.x + 160 - 8; + tmprect.y = dstrect.y + 120 - 12; tmprect.w = 16; tmprect.h = 20; diff --git a/src/main.c b/src/main.c index 35d736f..a8700cd 100644 --- a/src/main.c +++ b/src/main.c @@ -57,7 +57,7 @@ main(void) struct map_exit *e; init(); - vp = init_viewport(240, 160, 8); + vp = init_viewport(320, 240, 8); map = map_get(MAPSDIR "/forest1-8bit.tmx"); if (map == NULL) { -- cgit v0.9.1