CGUITreeCtrl slight change
Posted: Sun Apr 05, 2015 2:14 pm
found the CGUITreeCtrl code on the forumsomewhere but cant find it again.
anyhow, some clipping issues if the control has too few items in it to activate the clipping code
slight change to clip text correctly in the CGUITreeCtrl element draw function
anyhow, some clipping issues if the control has too few items in it to activate the clipping code
slight change to clip text correctly in the CGUITreeCtrl element draw function
Code: Select all
void CGUITreeCtrl::draw()
{
------------- < code removed for clarity > ----------------
if(RootNode->Child) // No point in drawing anything otherwise
{
// core::rect<s32> *MyClip = NULL; // original code
core::rect<s32> *MyClip = &clientClip; // replacement code to clip text correctly
core::array<bool> DistStack;
u32 Indent = 1-ScrollBarH->getPos()/10;