X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=9cc9235e6f780899c90c35ea63e232a1a25234dc;hp=e4f8f8a157e45872c9365ee880775663b92958b8;hb=c4baa69cc8d5e8398425e67498b49f4b77f8e477;hpb=4b0c6356359ee52f98cee8fa578179c6c41d4ef1 diff --git a/src/screens.c b/src/screens.c index e4f8f8a1..9cc9235e 100644 --- a/src/screens.c +++ b/src/screens.c @@ -146,7 +146,7 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button) if (new_level_nr>leveldir[leveldir_nr].levels-1) new_level_nr = leveldir[leveldir_nr].levels-1; - if (old_level_nr==new_level_nr || !DelayReached(&level_delay,15)) + if (old_level_nr==new_level_nr || !DelayReached(&level_delay,150)) goto out; level_nr = new_level_nr; @@ -481,8 +481,7 @@ void DrawHelpScreenElAction(int start) } j++; - DrawGraphicExtHiRes(drawto,gc,xstart,ystart+(i-start)*ystep, - graphic+frame); + DrawGraphicExt(drawto, gc, xstart, ystart+(i-start)*ystep, graphic+frame); i++; } @@ -1176,7 +1175,7 @@ void CalibrateJoystick() joystick_status=JOYSTICK_OFF; goto error_out; } - Delay(10000); + Delay(10); } new_joystick_xleft = joy_ctrl.x; @@ -1205,7 +1204,7 @@ void CalibrateJoystick() joystick_status=JOYSTICK_OFF; goto error_out; } - Delay(10000); + Delay(10); } new_joystick_xright = joy_ctrl.x; @@ -1233,7 +1232,7 @@ void CalibrateJoystick() joystick_status=JOYSTICK_OFF; goto error_out; } - Delay(10000); + Delay(10); } new_joystick_xmiddle = joy_ctrl.x; @@ -1296,7 +1295,7 @@ void CalibrateJoystick() DrawText(SX+16, SY+16, "NO JOYSTICK",FS_BIG,FC_YELLOW); DrawText(SX+16, SY+48, " AVAILABLE ",FS_BIG,FC_YELLOW); BackToFront(); - Delay(3000000); + Delay(3000); DrawSetupScreen(); }