Net_Owl_BC_done/Arty.cpp
/* Process the movement of one line. */
Process the movement of one line.
Process the movement of one line .
void TList::LineTick( HDC DC )
{
  EraseLine(DC, CurrentLine);
  if (ColorDuration < 0)   SelectNewColor();
  if (!IncrementCount)     SelectNewDeltaValues();
  AdjustX(X1,DeltaX1);  AdjustX(X2,DeltaX2);
  AdjustY(Y1,DeltaY1);  AdjustY(Y2,DeltaY2);
  Line[CurrentLine].LX1 = X1;
  Line[CurrentLine].LX2 = X2;
  Line[CurrentLine].LY1 = Y1;
  Line[CurrentLine].LY2 = Y2;
  Line[CurrentLine].Color = PenColor;
  DrawLine(DC, CurrentLine);
  CurrentLine++;
  if (CurrentLine >= MaxLines)  CurrentLine = 1;
  ColorDuration--;
  IncrementCount--;
}
void TList :: LineTick ( HDC DC ) { EraseLine ( DC , CurrentLine ) ; if ( ColorDuration < 0 ) SelectNewColor ( ) ; if ( ! IncrementCount ) SelectNewDeltaValues ( ) ; AdjustX ( X1 , DeltaX1 ) ; AdjustX ( X2 , DeltaX2 ) ; AdjustY ( Y1 , DeltaY1 ) ; AdjustY ( Y2 , DeltaY2 ) ; Line [ CurrentLine ] . LX1 = X1 ; Line [ CurrentLine ] . LX2 = X2 ; Line [ CurrentLine ] . LY1 = Y1 ; Line [ CurrentLine ] . LY2 = Y2 ; Line [ CurrentLine ] . Color = PenColor ; DrawLine ( DC , CurrentLine ) ; CurrentLine ++ ; if ( CurrentLine >= MaxLines ) CurrentLine = 1 ; ColorDuration -- ; IncrementCount -- ; }
Process the movement of one line.
Process the movement of one line .