From d6f6602d7cea3a7899990fe79216af7d98d05917 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 27 May 2004 22:30:21 +0000 Subject: yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore, lots of work required). --- lib/gui/elabel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/gui/elabel.cpp') diff --git a/lib/gui/elabel.cpp b/lib/gui/elabel.cpp index ae04eb46..ce4efaf1 100644 --- a/lib/gui/elabel.cpp +++ b/lib/gui/elabel.cpp @@ -84,7 +84,7 @@ void eLabel::redrawWidget(gPainter *target, const eRect &rc) /* eDebug("decoStr = %s, text=%s, name=%s, %p left = %d, top = %d, width=%d, height = %d", strDeco?strDeco.c_str():"no", text?text.c_str():"no" , name?name.c_str():"no", this, this->getPosition().x(), this->getPosition().y(), this->getSize().width(), this->getSize().height() ); eDebug("renderContext left = %d, top = %d, width = %d, height = %d", rc.left(), rc.top(), rc.width(), rc.height() );*/ - target->clip( rc ); + target->clip( gRegion(rc) ); eRect area=eRect(ePoint(0, 0), ePoint(width(), height())); /* eDebug("area left = %d, top = %d, width = %d, height = %d", area.left(), area.top(), @@ -136,7 +136,7 @@ void eLabel::redrawWidget(gPainter *target, const eRect &rc) target->setBackgroundColor(w->getBackgroundColor()); } target->setFont(font); - target->renderPara(*para, ePoint( area.left(), area.top()+yOffs) ); + target->renderPara(para, ePoint( area.left(), area.top()+yOffs) ); } if (pixmap) { @@ -146,7 +146,7 @@ void eLabel::redrawWidget(gPainter *target, const eRect &rc) } if (shortcutPixmap) target->blit(shortcutPixmap, - ePoint((area.height()-shortcutPixmap->x)/2, area.top()+(area.height()-shortcutPixmap->y)/2), + ePoint((area.height()-shortcutPixmap->getSize().width())/2, area.top()+(area.height()-shortcutPixmap->getSize().height())/2), eRect(), gPixmap::blitAlphaTest); target->clippop(); -- cgit v1.2.3