hedgewars/hwengine.pas
changeset 3764 eb91c02f2d84
parent 3739 97cf933e5bd2
child 3765 ebfe7c9b3085
--- a/hedgewars/hwengine.pas	Tue Aug 24 13:24:37 2010 +0200
+++ b/hedgewars/hwengine.pas	Tue Aug 24 17:03:44 2010 +0200
@@ -263,6 +263,11 @@
     ShowMainWindow();
 {$ENDIF}
 
+    // those values still aren't perfect
+    cLeftScreenBorder:= round(-cMinZoomLevel * cScreenWidth);
+    cRightScreenBorder:= round(cMinZoomLevel * cScreenWidth + LAND_WIDTH);
+    cScreenSpace:= cRightScreenBorder - cLeftScreenBorder;
+
     AddProgress();
 
     ControllerInit(); // has to happen before InitKbdKeyTable to map keys