aboutsummaryrefslogtreecommitdiff
path: root/Source/Font.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-08-30 23:29:57 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-08-30 23:29:57 +0200
commit69027a04e3d2eb10708243295dec3655c4ccdca5 (patch)
tree62f03f16d4fab87392757e621b3d394a592b615f /Source/Font.c
parent0cfdfaf95927f0bc25d34744292c41d0d344c5e2 (diff)
downloadairport-69027a04e3d2eb10708243295dec3655c4ccdca5.tar.gz
* Minor changes (spaces between "if"/"for"... instructions).
+ Added output ELF file with debugging symbols for nocash.
Diffstat (limited to 'Source/Font.c')
-rw-r--r--Source/Font.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/Font.c b/Source/Font.c
index c00de66..52a8cca 100644
--- a/Source/Font.c
+++ b/Source/Font.c
@@ -28,7 +28,7 @@ static unsigned char _blend_effect_lum;
bool FontLoadImage(char* strPath, TYPE_FONT * ptrFont)
{
- if(GfxSpriteFromFile(strPath, &ptrFont->spr) == false)
+ if (GfxSpriteFromFile(strPath, &ptrFont->spr) == false)
{
return false;
}
@@ -107,16 +107,16 @@ void FontPrintText(TYPE_FONT * ptrFont, short x, short y, char* str, ...)
va_list ap;
- if(ptrFont->flags & FONT_1HZ_FLASH)
+ if (ptrFont->flags & FONT_1HZ_FLASH)
{
- if(Gfx1HzFlash() == false)
+ if (Gfx1HzFlash() == false)
{
return;
}
}
- else if(ptrFont->flags & FONT_2HZ_FLASH)
+ else if (ptrFont->flags & FONT_2HZ_FLASH)
{
- if(Gfx2HzFlash() == false)
+ if (Gfx2HzFlash() == false)
{
return;
}
@@ -129,11 +129,11 @@ void FontPrintText(TYPE_FONT * ptrFont, short x, short y, char* str, ...)
str,
ap );
- for(i = 0; i < result ; i++)
+ for (i = 0; i < result ; i++)
{
char _ch = _internal_text[i];
- if(_ch == '\0')
+ if (_ch == '\0')
{
// End of string
break;
@@ -149,9 +149,9 @@ void FontPrintText(TYPE_FONT * ptrFont, short x, short y, char* str, ...)
y += ptrFont->char_h;
break;
default:
- if( (ptrFont->flags & FONT_WRAP_LINE) && (ptrFont->max_ch_wrap != 0) )
+ if ( (ptrFont->flags & FONT_WRAP_LINE) && (ptrFont->max_ch_wrap != 0) )
{
- if(++line_count >= ptrFont->max_ch_wrap)
+ if (++line_count >= ptrFont->max_ch_wrap)
{
line_count = 0;
x = orig_x;
@@ -168,7 +168,7 @@ void FontPrintText(TYPE_FONT * ptrFont, short x, short y, char* str, ...)
ptrFont->spr.v = (short)( (_ch - ptrFont->init_ch) / ptrFont->char_per_row) * ptrFont->char_h;
ptrFont->spr.v += ptrFont->spr_v; // Add original offset for image
- if(ptrFont->flags & FONT_BLEND_EFFECT)
+ if (ptrFont->flags & FONT_BLEND_EFFECT)
{
ptrFont->spr.r += 8;
ptrFont->spr.g += 8;
@@ -195,7 +195,7 @@ void FontPrintText(TYPE_FONT * ptrFont, short x, short y, char* str, ...)
}
}
- if(ptrFont->flags & FONT_BLEND_EFFECT)
+ if (ptrFont->flags & FONT_BLEND_EFFECT)
{
ptrFont->spr.r = _blend_effect_lum;
ptrFont->spr.g = _blend_effect_lum;