From 866632b9085a7a601352ef37b04bb736aed8f96e Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sun, 23 Jan 2005 12:27:15 +0000 Subject: - fixed menu tabs calculation with negative offsets --- render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render.c b/render.c index fc0e48f..eb0b4c2 100644 --- a/render.c +++ b/render.c @@ -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; -- cgit v1.2.3