X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDisplay.c;h=ceaf64423d5a6673bfe9e233485ba5982d2598bb;hb=ce0bba1a070e5e64939491eb68087f68ef8fe870;hp=92cdcd99252c07924022c40aa42c6066307be08d;hpb=1533b136c6f8d0656cc45ca4c204104ef3d75249;p=rocksndiamonds.git diff --git a/src/game_sp/Display.c b/src/game_sp/Display.c index 92cdcd99..ceaf6442 100644 --- a/src/game_sp/Display.c +++ b/src/game_sp/Display.c @@ -4,14 +4,11 @@ #include "Display.h" -// static char *VB_Name = "modDisplay"; - -// --- Option Explicit int ScreenScrollXPos, ScreenScrollYPos; -int ScreenPosition, data_h_Xtmp, data_h_Ytmp; +int ScreenPosition; -int ShowRedDiskCounter, ShowPanel; +int ShowPanel; int ExplosionShake; boolean NoDisplayFlag; @@ -19,94 +16,19 @@ long DisplayMinX, DisplayMaxX, DisplayWidth; long DisplayMinY, DisplayMaxY, DisplayHeight; -int subDisplayInfotronsNeeded() +void subDisplayLevel() { - int subDisplayInfotronsNeeded; - - if (NoDisplayFlag) - return subDisplayInfotronsNeeded; - - { -#if 0 - MainForm.lblInfoCount.Caption = InfotronsNeeded; - MainForm.lblInfoCount.Refresh; -#endif - } - - return subDisplayInfotronsNeeded; -} - -int subDisplayPlayingTime() -{ - int subDisplayPlayingTime; - - - return subDisplayPlayingTime; -} - -int subDisplayLevel() -{ - int subDisplayLevel; - if (NoDisplayFlag || ! LevelLoaded) - return subDisplayLevel; - -#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() -{ - if (NoDisplayFlag) return; - { -#if 0 - MainForm.lblRedDiskCount.Caption = RedDiskCount; - MainForm.lblRedDiskCount.Refresh; -#endif - } - ShowRedDiskCounter = 0x46; + DisplayLevel(); } void ScrollTo(int X, int Y) { long oldX, oldY; -#if 1 +#if 0 printf("::: Display.c: ScrollTo(): %d, %d\n", X, Y); #endif @@ -145,7 +67,7 @@ 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)