summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-07 23:57:17 +0000
committerlordjaxom <lordjaxom>2005-01-07 23:57:17 +0000
commit5e1083d1299960702d3d991cd4940d41bb23ec6b (patch)
tree13393483096ad82c9c2f65963d0c74f0867ad33f /render.c
parente97b3b39a1fc19e5f708939edd82613065428c56 (diff)
downloadvdr-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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/render.c b/render.c
index 0c07d53..bdae6e8 100644
--- a/render.c
+++ b/render.c
@@ -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)