equal
deleted
inserted
replaced
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 |