Made Flash.cpp more source-accurate
The returns make more sense than those empty brackets
This commit is contained in:
parent
5ba0454bc8
commit
fb9b545e27
1 changed files with 14 additions and 22 deletions
|
@ -21,7 +21,7 @@ static unsigned long gFlashColor;
|
||||||
|
|
||||||
void InitFlash(void)
|
void InitFlash(void)
|
||||||
{
|
{
|
||||||
gFlashColor = 0xFEFFFF;
|
gFlashColor = GetCortBoxColor(RGB(0xFF, 0xFF, 0xFE));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetFlash(int x, int y, int mode)
|
void SetFlash(int x, int y, int mode)
|
||||||
|
@ -137,11 +137,8 @@ void ActFlash_Flash(void)
|
||||||
void ActFlash(int flx, int fly)
|
void ActFlash(int flx, int fly)
|
||||||
{
|
{
|
||||||
if (flash.flag == FALSE)
|
if (flash.flag == FALSE)
|
||||||
{
|
return;
|
||||||
// Do nothing
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
switch (flash.mode)
|
switch (flash.mode)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -152,20 +149,15 @@ void ActFlash(int flx, int fly)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void PutFlash(void)
|
void PutFlash(void)
|
||||||
{
|
{
|
||||||
if (flash.flag == FALSE)
|
if (flash.flag == FALSE)
|
||||||
{
|
return;
|
||||||
// Do nothing
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CortBox(&flash.rect1, gFlashColor);
|
CortBox(&flash.rect1, gFlashColor);
|
||||||
CortBox(&flash.rect2, gFlashColor);
|
CortBox(&flash.rect2, gFlashColor);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void ResetFlash(void)
|
void ResetFlash(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue