diff options
author | lordjaxom <lordjaxom> | 2005-01-23 12:27:15 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-23 12:27:15 +0000 |
commit | 866632b9085a7a601352ef37b04bb736aed8f96e (patch) | |
tree | 53858315a141903e59ba312b604a3d7791942639 | |
parent | d71e58a3488e37d2355bb5d3c6f0f916c341adb4 (diff) | |
download | vdr-plugin-text2skin-866632b9085a7a601352ef37b04bb736aed8f96e.tar.gz vdr-plugin-text2skin-866632b9085a7a601352ef37b04bb736aed8f96e.tar.bz2 |
- fixed menu tabs calculation with negative offsets
-rw-r--r-- | render.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * $Id: render.c,v 1.26 2005/01/21 18:28:04 lordjaxom Exp $ + * $Id: render.c,v 1.27 2005/01/23 12:27:15 lordjaxom Exp $ */ #include "render.h" @@ -255,7 +255,7 @@ void cText2SkinRender::DrawObject(const cxObject *Object) nexttab = GetTab(n); } - if (t >= 0 && nexttab > 0 && nexttab < obj.mPos2.x) + if (t >= 0 && nexttab > 0 && nexttab < obj.mPos1.x + obj.Size().w - 1) // there is a "next tab" with text obj.mPos2.x = Object->mPos1.x + o->mPos1.x + nexttab; else { @@ -281,7 +281,7 @@ void cText2SkinRender::DrawObject(const cxObject *Object) } if (isprogress) { - Dprintf("detected progress bar tab\n"); + //Dprintf("detected progress bar tab\n"); if (obj.Condition() == NULL || obj.Condition()->Evaluate()) { int total = text.length() - 2; int current = 0; |