diff options
author | lordjaxom <lordjaxom> | 2005-01-07 23:57:17 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-07 23:57:17 +0000 |
commit | 5e1083d1299960702d3d991cd4940d41bb23ec6b (patch) | |
tree | 13393483096ad82c9c2f65963d0c74f0867ad33f /render.c | |
parent | e97b3b39a1fc19e5f708939edd82613065428c56 (diff) | |
download | vdr-plugin-text2skin-5e1083d1299960702d3d991cd4940d41bb23ec6b.tar.gz vdr-plugin-text2skin-5e1083d1299960702d3d991cd4940d41bb23ec6b.tar.bz2 |
- when there's no blinkColor <blink> will just blink on/off
Diffstat (limited to 'render.c')
-rw-r--r-- | render.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* - * $Id: render.c,v 1.18 2005/01/07 23:30:46 lordjaxom Exp $ + * $Id: render.c,v 1.19 2005/01/07 23:57:17 lordjaxom Exp $ */ #include "render.h" @@ -365,10 +365,10 @@ void cText2SkinRender::DrawBlink(const txPoint &Pos, const txSize &Size, const t if (mUpdateIn == 0 || updatein < mUpdateIn) mUpdateIn = updatein; - mScreen->DrawText(Pos.x, Pos.y, Text.c_str(), state.offset == 0 - ? (Fg ? *Fg : 0) - : (Bg ? *Bg : 0), - clrTransparent, Font, Size.w, Size.h, Align); + const tColor *col = state.offset == 0 ? Fg : Bg; + if (col) + mScreen->DrawText(Pos.x, Pos.y, Text.c_str(), *col, clrTransparent, Font, Size.w, Size.h, + Align); } void cText2SkinRender::DrawRectangle(const txPoint &Pos, const txSize &Size, const tColor *Fg) |