hedgewars/hwengine.pas
changeset 3764 eb91c02f2d84
parent 3739 97cf933e5bd2
child 3765 ebfe7c9b3085
equal deleted inserted replaced
3763:2396a2731054 3764:eb91c02f2d84
   261     SDL_putenv(str2pchar('SDL_VIDEO_CENTERED=' + s));
   261     SDL_putenv(str2pchar('SDL_VIDEO_CENTERED=' + s));
   262 {$ELSE}
   262 {$ELSE}
   263     ShowMainWindow();
   263     ShowMainWindow();
   264 {$ENDIF}
   264 {$ENDIF}
   265 
   265 
       
   266     // those values still aren't perfect
       
   267     cLeftScreenBorder:= round(-cMinZoomLevel * cScreenWidth);
       
   268     cRightScreenBorder:= round(cMinZoomLevel * cScreenWidth + LAND_WIDTH);
       
   269     cScreenSpace:= cRightScreenBorder - cLeftScreenBorder;
       
   270 
   266     AddProgress();
   271     AddProgress();
   267 
   272 
   268     ControllerInit(); // has to happen before InitKbdKeyTable to map keys
   273     ControllerInit(); // has to happen before InitKbdKeyTable to map keys
   269     InitKbdKeyTable();
   274     InitKbdKeyTable();
   270 
   275