diff options
author | P. 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) |
commit | 7aee23711d3bc2c1fa3f8fd56e14075e895f3263 (patch) | |
tree | fdf409a85ed6eabdf0d0b160eb119944ff2ec03d | |
parent | 826cfc5a4d6cf322cb82e5f889f16235720919f8 (diff) | |
download | overworld-rpg-7aee23711d3bc2c1fa3f8fd56e14075e895f3263.zip overworld-rpg-7aee23711d3bc2c1fa3f8fd56e14075e895f3263.tar.gz overworld-rpg-7aee23711d3bc2c1fa3f8fd56e14075e895f3263.tar.bz2 |
Change the viewport size.
-rw-r--r-- | src/area.c | 4 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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; @@ -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) { |