From 5e1083d1299960702d3d991cd4940d41bb23ec6b Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Fri, 7 Jan 2005 23:57:17 +0000 Subject: - when there's no blinkColor will just blink on/off --- render.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'render.c') 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) -- cgit v1.2.3