rnd-20001125-3-src
[rocksndiamonds.git] / src / screens.c
index d6ecb554bb3fc24f06e3988bc459b8c117d76e7d..cb715f420688cae2f69bccc3dd841872c606e127 100644 (file)
@@ -86,6 +86,9 @@ void DrawMainMenu()
 
   /* needed if last screen was the setup screen and fullscreen state changed */
   ChangeVideoModeIfNeeded();
+#ifdef TARGET_SDL
+  SetDrawtoField(DRAW_BACKBUFFER);
+#endif
 
   /* map gadgets for main menu screen */
   MapTapeButtons();
@@ -2108,7 +2111,7 @@ void CalibrateJoystick(int player_nr)
 
 #ifndef MSDOS
 
-#ifdef USE_SDL_LIBRARY
+#ifdef USE_SDL_JOYSTICK
     joy_ctrl.x = Get_SDL_Joystick_Axis(joystick_fd, 0);
     joy_ctrl.y = Get_SDL_Joystick_Axis(joystick_fd, 1);
 #else