From d8fe1c66d23616d276b6d085cf400c2b87ad85df Mon Sep 17 00:00:00 2001 From: kank Date: Tue, 13 Oct 2009 17:56:14 +0000 Subject: [PATCH] Linecounter gedimmt --- games/tetris/view.c | 6 +++--- games/tetris/view.h | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/games/tetris/view.c b/games/tetris/view.c index 3d376fb..0582986 100644 --- a/games/tetris/view.c +++ b/games/tetris/view.c @@ -305,9 +305,9 @@ void tetris_view_showLineNumbers (tetris_view_t *pV, uint8_t nColor) ones= Lines%10; tens=(Lines/10)%10; - //pick drawing color, dark if ones=0, bright (piece color) otherwise + //pick drawing color, dark if ones=0, faded otherwise (bright counter gets confused with piece preview) if ((ones%10)!=0) - nPen=TETRIS_VIEW_COLORPIECE; + nPen=TETRIS_VIEW_COLORFADE; else nPen=TETRIS_VIEW_COLORSPACE; //Draws ones in the upper part of the border as a 3x3 square with 0-9 pixels @@ -331,7 +331,7 @@ void tetris_view_showLineNumbers (tetris_view_t *pV, uint8_t nColor) //back to normal color, but only if tens is not divisible by 10 if ((tens%10)!=0) - nPen=TETRIS_VIEW_COLORPIECE; + nPen=TETRIS_VIEW_COLORFADE; else nPen=TETRIS_VIEW_COLORSPACE; //Draws ones in the lower part of the border as a 3x3 square with 0-9 pixels diff --git a/games/tetris/view.h b/games/tetris/view.h index ddc2ba5..6daabd8 100644 --- a/games/tetris/view.h +++ b/games/tetris/view.h @@ -21,11 +21,12 @@ tetris_view_mode_t; typedef struct tetris_view_t { - tetris_logic_t *pLogic; // associated logic object - tetris_playfield_t *pPl; // associated playfield - tetris_view_mode_t modeCurrent; // current presentation mode - tetris_view_mode_t modeOld; // old presentation mode - uint8_t nOldLevel; // helper variable to recognize level changes + tetris_logic_t *pLogic; // associated logic object + tetris_playfield_t *pPl; // associated playfield + tetris_view_mode_t modeCurrent; // current presentation mode + tetris_view_mode_t modeOld; // old presentation mode + uint8_t nOldLevel; // helper variable to recognize level changes + } tetris_view_t;