diff options
author | louis <louis.braun@gmx.de> | 2012-12-16 11:38:21 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2012-12-16 11:38:21 +0100 |
commit | ec274fcb4852434290a1a9fdc13c8fb747762099 (patch) | |
tree | 01cbeb0c5e2caa3690eaf7428d965e38aed30505 /helpers.c | |
parent | 737d17c8ed6e50718465043230e00901f632fe2c (diff) | |
download | skin-nopacity-ec274fcb4852434290a1a9fdc13c8fb747762099.tar.gz skin-nopacity-ec274fcb4852434290a1a9fdc13c8fb747762099.tar.bz2 |
Whitespace Cleanup
Diffstat (limited to 'helpers.c')
-rw-r--r-- | helpers.c | 66 |
1 files changed, 33 insertions, 33 deletions
@@ -1,38 +1,38 @@ static cOsd *CreateOsd(int Left, int Top, int Width, int Height) { - cOsd *osd = cOsdProvider::NewOsd(Left, Top); - if (osd) { - tArea Area = { 0, 0, Width, Height, 32 }; - if (osd->SetAreas(&Area, 1) == oeOk) { - return osd; - } - } - return NULL; + cOsd *osd = cOsdProvider::NewOsd(Left, Top); + if (osd) { + tArea Area = { 0, 0, Width, Height, 32 }; + if (osd->SetAreas(&Area, 1) == oeOk) { + return osd; + } + } + return NULL; } static void DrawBlendedBackground(cPixmap *pixmap, tColor color, tColor colorBlending, bool fromTop) { - int width = pixmap->ViewPort().Width(); - int height = pixmap->ViewPort().Height(); - pixmap->Fill(color); - int numSteps = 16; - int alphaStep = 0x0F; - int alpha = 0x00; - int step, begin, end; - bool cont = true; - if (fromTop) { - step = 1; - begin = 0; - end = numSteps; - } else { - step = -1; - begin = height; - end = height - numSteps; - } - tColor clr; - for (int i = begin; cont; i = i + step) { - clr = AlphaBlend(color, colorBlending, alpha); - pixmap->DrawRectangle(cRect(0,i,width,1), clr); - alpha += alphaStep; - if (i == end) - cont = false; - } + int width = pixmap->ViewPort().Width(); + int height = pixmap->ViewPort().Height(); + pixmap->Fill(color); + int numSteps = 16; + int alphaStep = 0x0F; + int alpha = 0x00; + int step, begin, end; + bool cont = true; + if (fromTop) { + step = 1; + begin = 0; + end = numSteps; + } else { + step = -1; + begin = height; + end = height - numSteps; + } + tColor clr; + for (int i = begin; cont; i = i + step) { + clr = AlphaBlend(color, colorBlending, alpha); + pixmap->DrawRectangle(cRect(0,i,width,1), clr); + alpha += alphaStep; + if (i == end) + cont = false; + } }
\ No newline at end of file |