|
@@ -517,9 +517,10 @@ void TextRenderer::renderText( int x, int y, const char *txt, Bild & zRObj, std:
|
|
fbeg = cpos;
|
|
fbeg = cpos;
|
|
int zRObjBr = zRObj.getBreite();
|
|
int zRObjBr = zRObj.getBreite();
|
|
int zRObjHi = zRObj.getHeight();
|
|
int zRObjHi = zRObj.getHeight();
|
|
|
|
+ const Punkt &zRObjOff = zRObj.getDrawOff();
|
|
int beginX = x;
|
|
int beginX = x;
|
|
int zh = getZeilenHeight();
|
|
int zh = getZeilenHeight();
|
|
- if( y + ( zh + zeilenAbstand ) * Text( txt ).anzahlVon( '\n' ) + zh < 0 || x >= zRObjBr || y >= zRObjHi )
|
|
|
|
|
|
+ if( y + ( zh + zeilenAbstand ) * Text( txt ).anzahlVon( '\n' ) + zh + zRObjOff.y < 0 || x + zRObjOff.x >= zRObjBr || y + zRObjOff.y >= zRObjHi )
|
|
return;
|
|
return;
|
|
bool faerb = 0;
|
|
bool faerb = 0;
|
|
int len = textLength( txt );
|
|
int len = textLength( txt );
|