diff options
| author | Japa Illo | 2012-02-22 08:26:47 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-02-22 08:26:47 +0530 |
| commit | 6a2241742561931aa6347c3d72529d976a82ee4d (patch) | |
| tree | 0037edc47bc147de2168210a446d4048955ed0ec /main.cpp | |
| parent | ce5ec6c3f87fe5d0fb2bf5c50f097057e58aa039 (diff) | |
| download | stonesense-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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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
|
