summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-03-05 02:42:01 (EST)
committer P. J. McDermott <pjm@nac.net>2013-03-05 02:42:01 (EST)
commit7aee23711d3bc2c1fa3f8fd56e14075e895f3263 (patch)
treefdf409a85ed6eabdf0d0b160eb119944ff2ec03d /src
parent826cfc5a4d6cf322cb82e5f889f16235720919f8 (diff)
downloadoverworld-rpg-7aee23711d3bc2c1fa3f8fd56e14075e895f3263.zip
overworld-rpg-7aee23711d3bc2c1fa3f8fd56e14075e895f3263.tar.gz
overworld-rpg-7aee23711d3bc2c1fa3f8fd56e14075e895f3263.tar.bz2
Change the viewport size.
Diffstat (limited to 'src')
-rw-r--r--src/area.c4
-rw-r--r--src/main.c2
2 files changed, 3 insertions, 3 deletions
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) {