rnd-20100315-3-src
[rocksndiamonds.git] / src / game_sp / Display.c
index d75db7b92cd4e89ce1ab4bdbb8032db02117d774..32923d6340f998538ee3aa0b184d3dce12418c30 100644 (file)
@@ -4,14 +4,10 @@
 
 #include "Display.h"
 
-// static char *VB_Name = "modDisplay";
-
-// --- Option Explicit
 
 int ScreenScrollXPos, ScreenScrollYPos;
-int ScreenPosition, data_h_Xtmp, data_h_Ytmp;
 
-int ShowRedDiskCounter, ShowPanel;
+int ShowPanel;
 int ExplosionShake;
 boolean NoDisplayFlag;
 
@@ -19,92 +15,21 @@ long DisplayMinX, DisplayMaxX, DisplayWidth;
 long DisplayMinY, DisplayMaxY, DisplayHeight;
 
 
-int subDisplayInfotronsNeeded()
-{
-  int subDisplayInfotronsNeeded;
-
-  if (NoDisplayFlag)
-    return subDisplayInfotronsNeeded;
-
-  {
-#if 0
-    MainForm.lblInfoCount.Caption = InfotronsNeeded;
-    MainForm.lblInfoCount.Refresh;
-#endif
-  }
-
-  return subDisplayInfotronsNeeded;
-}
-
-int subDisplayPlayingTime()
+void subDisplayLevel()
 {
-  int subDisplayPlayingTime;
-
-
-  return subDisplayPlayingTime;
-}
-
-int subDisplayLevel()
-{
-  int subDisplayLevel;
-
   if (NoDisplayFlag || ! LevelLoaded)
-    return subDisplayLevel;
+    return;
 
-#if 1
   DisplayLevel();
-#else
-  MainForm.DisplayLevel();
-#endif
-
-  return subDisplayLevel;
 }
 
-void subDisplayPanel()
-{
-}
-
-int subCheckRestoreRedDiskCountDisplay()
-{
-  int subCheckRestoreRedDiskCountDisplay;
-
-  if (NoDisplayFlag)
-    return subCheckRestoreRedDiskCountDisplay;
-
-  if (ShowRedDiskCounter == 0)
-    return subCheckRestoreRedDiskCountDisplay;
-
-  ShowRedDiskCounter = ShowRedDiskCounter - 1;
-  if (ShowRedDiskCounter == 0)
-  {
-    {
-#if 0
-      MainForm.lblRedDiskCount.Caption = 0;
-      MainForm.lblRedDiskCount.Refresh;
-#endif
-    }
-  }
-
-  return subCheckRestoreRedDiskCountDisplay;
-}
-
-void subDisplayRedDiskCount()
+void ScrollTo(int X, int Y)
 {
-  if (NoDisplayFlag)
-    return;
+  long oldX, oldY;
 
-  {
 #if 0
-    MainForm.lblRedDiskCount.Caption = RedDiskCount;
-    MainForm.lblRedDiskCount.Refresh;
+  printf("::: Display.c: ScrollTo(): %d, %d\n", X, Y);
 #endif
-  }
-  ShowRedDiskCounter = 0x46;
-}
-
-void ScrollTo(int X, int Y)
-{
-  long oldX, oldY;
 
   if (NoDisplayFlag)
     return;
@@ -141,21 +66,13 @@ void ScrollTowards(int X, int Y)
   //  ScrollX = X
   //  ScrollY = Y
 
-  Stage.ScrollTowards(X, Y, 2 * Stretch);
+  Stage.ScrollTowards(X, Y, 2 * Stretch * ZoomFactor);
 }
 
 void SoftScrollTo(int X, int Y, long TimeMS, int FPS)
 {
   long oldX, oldY;
 
-#if 1
-  printf("::: 1: Display.c: SoftScrollTo: X,Y == %d, %d\n", X, Y);
-  printf("::: %d, %d, %d, %d [%ld]\n",
-        ScrollMinX, ScrollMaxX,
-        ScrollMinY, ScrollMaxY,
-        ScrollDelta);
-#endif
-
   if (NoDisplayFlag)
     return;
 
@@ -170,9 +87,5 @@ void SoftScrollTo(int X, int Y, long TimeMS, int FPS)
   //  ScrollX = X
   //  ScrollY = Y
 
-#if 1
-  printf("::: 2: Display.c: SoftScrollTo: X,Y == %d, %d\n", X, Y);
-#endif
-
   Stage.SoftScrollTo(X, Y, TimeMS, FPS);
 }