summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-02-22 08:26:47 +0530
committerJapa Illo2012-02-22 08:26:47 +0530
commit6a2241742561931aa6347c3d72529d976a82ee4d (patch)
tree0037edc47bc147de2168210a446d4048955ed0ec /main.cpp
parentce5ec6c3f87fe5d0fb2bf5c50f097057e58aa039 (diff)
downloadstonesense-6a2241742561931aa6347c3d72529d976a82ee4d.tar.gz
stonesense-6a2241742561931aa6347c3d72529d976a82ee4d.tar.bz2
stonesense-6a2241742561931aa6347c3d72529d976a82ee4d.tar.xz
Made the function that follows the DF window actually follow using the center of the view, instead of the center of the worldsegment, which is more useful.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 6c676f2..3d8175e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -365,6 +365,8 @@ static void main_loop(ALLEGRO_DISPLAY * display, ALLEGRO_EVENT_QUEUE *queue, ALL
ALLEGRO_BITMAP *bb = al_get_backbuffer(al_get_current_display());
int w = al_get_bitmap_width(bb);
int h = al_get_bitmap_height(bb);
+ config.screenHeight = h;
+ config.screenWidth = w;
WriteErr("backbuffer w, h: %d, %d\n", w, h);
}
#endif