diff options
author | lordjaxom <lordjaxom> | 2004-12-28 01:54:02 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-28 01:54:02 +0000 |
commit | 839a89afdf54d0f6cc319af7d5d38be62ff424a9 (patch) | |
tree | be520b6dfa7845800fcc63a32d053bc8ffae280f /render.c | |
parent | 7eba7bfaa35f8d377c26fd22f7d4a7ccc2a70c1b (diff) | |
download | vdr-plugin-text2skin-839a89afdf54d0f6cc319af7d5d38be62ff424a9.tar.gz vdr-plugin-text2skin-839a89afdf54d0f6cc319af7d5d38be62ff424a9.tar.bz2 |
- animated bitmaps now honor the global "now" timestamp
Diffstat (limited to 'render.c')
-rw-r--r-- | render.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * $Id: render.c,v 1.5 2004/12/28 01:29:35 lordjaxom Exp $ + * $Id: render.c,v 1.6 2004/12/28 01:54:02 lordjaxom Exp $ */ #include "render.h" @@ -278,7 +278,7 @@ void cText2SkinRender::DrawImage(const txPoint &Pos, const txSize &Size, const t //Dprintf("success loading image\n"); if (Bg) bmp->SetColor(0, *Bg); if (Fg) bmp->SetColor(1, *Fg); - mScreen->DrawBitmap(Pos.x, Pos.y, bmp->Get(mUpdateIn)); + mScreen->DrawBitmap(Pos.x, Pos.y, bmp->Get(mUpdateIn, mNow)); } } @@ -457,7 +457,8 @@ void cText2SkinRender::DrawScrolltext(const txPoint &Pos, const txSize &Size, co { //Dprintf("trying to draw scrolltext %s\n", Text.c_str()); if (mScroller == NULL) - mScroller = new cText2SkinScroller(mScreen, Pos.x, Pos.y, Size.w, Size.h, Text.c_str(), Font, Fg ? *Fg : 0, clrTransparent); + mScroller = new cText2SkinScroller(mScreen, Pos.x, Pos.y, Size.w, Size.h, Text.c_str(), + Font, Fg ? *Fg : 0, clrTransparent); else mScroller->DrawText(); } |