Game Development Community

Gui/controls/guiOtherTreeViewCtrl.cc

by Gregory "Centove" McLean · in Torque Game Engine · 04/14/2005 (4:58 pm) · 6 replies

Same problem as with dgl/gDynamicTexture.cc

Index: engine/gui/controls/guiOtherTreeViewCtrl.cc
===================================================================
RCS file: /cvs/torque/torque/engine/gui/controls/guiOtherTreeViewCtrl.cc,v
retrieving revision 1.1
diff -u -r1.1 guiOtherTreeViewCtrl.cc
--- engine/gui/controls/guiOtherTreeViewCtrl.cc 2005/03/19 13:02:34     1.1
+++ engine/gui/controls/guiOtherTreeViewCtrl.cc 2005/04/10 17:07:02
@@ -2164,7 +2164,7 @@
    // Ok, first draw the tab and icon.

    // Do we draw the tree lines?
-   if(mFlags.test(TreeState::ShowTreeLines))
+   if(mFlags.test(ShowTreeLines))
    {
       drawRect.point.x += ( mTabSize * item->mTabLevel );
       Item* parent = item->mParent;
@@ -2189,7 +2189,7 @@

    S32 newOffset = 0; // This is stored so we can render glow, then update render pos.

-   if(mFlags.test(TreeState::ShowTreeLines)) // For now, we choose this by the treeline state.
+   if(mFlags.test(ShowTreeLines)) // For now, we choose this by the treeline state.
    {
       S32 bitmap = 0;

#1
04/22/2005 (6:40 am)
I also get aggregate type errors when I try to compile this via XCode. It complains about TreeState not being an aggregate type.
#2
04/22/2005 (6:58 am)
@Khalid: did you try the fix Greg mentioned here and are still getting the errors, or do you mean you get the errors with 1.3 "out of the box" as well?
#3
04/22/2005 (7:08 am)
Oh, I should've mentioned... my problems are with the newest HEAD (1.4).
#4
04/22/2005 (7:18 am)
And now I applied the fix and it seems to be working now.
#5
04/22/2005 (12:50 pm)
Can someone please tell me where to find 1.4 at? Seems that everyone is using it now, but I can't find anything above 1.3.

TIA
#6
04/22/2005 (12:53 pm)
It's the HEAD in CVS.