I've just got latest after a huge delay, and there were two little snags I came across. The static element seems to be double-offsetting its position. This is since it tells the cache its position as an abs rect, that then gets offset again when rendered.
To fix it, I had to change the following lines:
Static::populateRenderCache:
Rect backgroundRect(Point(0,0), getAbsoluteSize());
StaticText::populateRenderCache:
Rect absarea(Point(0,0), getAbsoluteSize());
This could be due a merge conflict on my part (perhaps due to my changes to support rotated static images), I'm not sure. Anyway, that fixed it for me.
Geoff
RenderCache double offset?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: RenderCache double offset?
Hey Geoff,
I'll have a look, though I thought I'd got this right - I did re-test the old classes, honest
I'll have a look, though I thought I'd got this right - I did re-test the old classes, honest
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: RenderCache double offset?
Its wierd, the menu text item seems to have the same problem. Surely all these different classes can't be wrong, so I wonder if I have some simple merge bug somewhere that is screwing it all up...
Re: RenderCache double offset?
@CrazyEddie: That's probably one of the bugs I talked you about on IRC, that static text control with lots of text in it stopped rendering it's content. I can give you a patch from gcarlton's code.
UPDATE: Hmm, looks like current CVS HEAD doesn't have that code in it
ANOTHER UPDATE: Just found them, here's a patch. Btw, I can't test it since HEAD build is broken
UPDATE: Hmm, looks like current CVS HEAD doesn't have that code in it
ANOTHER UPDATE: Just found them, here's a patch. Btw, I can't test it since HEAD build is broken
Re: RenderCache double offset?
Ok, thanks for making up that patch. Talking of bugs, I've noticed a couple of things with the tooltip - and again I'm just going to mention them rather than making up a patch, due to time.
The comments on the setDisplayTime, setHoverTime are swapped! Also, if the app is injecting positions, the tooltip is constantly resetting itself since the windows get mousemove(0,0) events.
Apart from that, its all good. And the menu system kicks ass too!
The comments on the setDisplayTime, setHoverTime are swapped! Also, if the app is injecting positions, the tooltip is constantly resetting itself since the windows get mousemove(0,0) events.
Apart from that, its all good. And the menu system kicks ass too!
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: RenderCache double offset?
I'll be looking into this offst issue today.
I'll fix the comments for tooltip
With regard to the position injection thing, you should only inject an event if the mouse has moved.
I'll fix the comments for tooltip
With regard to the position injection thing, you should only inject an event if the mouse has moved.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 4 guests