… | |
… | |
2697 | my ($old_w, $old_h) = ($WIDTH, $HEIGHT); |
2697 | my ($old_w, $old_h) = ($WIDTH, $HEIGHT); |
2698 | |
2698 | |
2699 | ($WIDTH, $HEIGHT, my ($rgb, $alpha)) = @{ $SDL_MODES[$CFG->{sdl_mode}] }; |
2699 | ($WIDTH, $HEIGHT, my ($rgb, $alpha)) = @{ $SDL_MODES[$CFG->{sdl_mode}] }; |
2700 | $FULLSCREEN = $CFG->{fullscreen}; |
2700 | $FULLSCREEN = $CFG->{fullscreen}; |
2701 | $FAST = $CFG->{fast}; |
2701 | $FAST = $CFG->{fast}; |
|
|
2702 | |
|
|
2703 | DC::SDL_WM_SetCaption "Deliantra MORPG Client $DC::VERSION$Urlader::EXE_VER", "Deliantra"; # must be after SDL_Init |
2702 | |
2704 | |
2703 | # due to mac os x braindamage, we simply retry with !fullscreen in case of an error |
2705 | # due to mac os x braindamage, we simply retry with !fullscreen in case of an error |
2704 | DC::SDL_SetVideoMode $WIDTH, $HEIGHT, $rgb, $alpha, $FULLSCREEN |
2706 | DC::SDL_SetVideoMode $WIDTH, $HEIGHT, $rgb, $alpha, $FULLSCREEN |
2705 | or DC::SDL_SetVideoMode $WIDTH, $HEIGHT, $rgb, $alpha, !$FULLSCREEN |
2707 | or DC::SDL_SetVideoMode $WIDTH, $HEIGHT, $rgb, $alpha, !$FULLSCREEN |
2706 | or die "SDL_SetVideoMode failed: " . (DC::SDL_GetError) . "\n"; |
2708 | or die "SDL_SetVideoMode failed: " . (DC::SDL_GetError) . "\n"; |