Results 1 to 3 of 3

Thread: ClanLib 0.9.0 (SVN) issue with GUIEditor

  1. #1

    Default ClanLib 0.9.0 (SVN) issue with GUIEditor

    I was having issues compiling the GUIEditor. There were 3 methods whose argument list changed (probably during development). Apparently, the methods CL_Rect.expand() and CL_Rect.shrink() do not return the shrinked/expanded rectangles anymore, but instead performs the shrinking/expanding on itself - given the parameters. The workaround was to copy the rectangles needed and then use the methods.

    I've made those fixes and it compiled and worked normally:

    File grid_component.cpp - around line 410:

    PHP Code:
    // FIX
                
    CL_Rect boundary_outer outer;
                
    CL_Rect boundary_inner inner;
                
    boundary_outer.expand(CL_Rect(3,3,3,3));
                
    boundary_inner.expand(CL_Rect(3,3,3,3));
    // ORIGINAL (causes errors)
    //            CL_Rect boundary_outer = outer.expand(CL_Rect(3,3,3,3));
    //            CL_Rect boundary_inner = inner.shrink(CL_Rect(3,3,3,3));
    // END FIX 
    File holder_component.cpp - around line 352:

    PHP Code:
    // FIX
        
    CL_Rect child_geom component->get_first_child()->get_geometry();
        
    child_geom.expand(CL_Rect(2,2,1,1));
    // ORIGINAL CODE (causes errors)
    //CL_Rect child_geom = component->get_first_child()->get_geometry().expand(CL_Rect(2,2,1,1));
    // END FIX 

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Thanks

    I'm not sure the functions should be CL_RectPS(3,3,3,3) or CL_Rect(3,3, CL_Size(3,3)) instead

    I'll check next week, unless someone beats me to it

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    (My last comment was incorrect about CL_RectPS etc )

    Applied your patch, many thanks
    Last edited by rombust; 02-02-2009 at 11:26 AM. Reason: whoops

Similar Threads

  1. font anti alias issue
    By alpharesearch in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 05-20-2009, 08:41 AM
  2. Replies: 7
    Last Post: 08-26-2008, 09:57 PM
  3. XML Attack State Issue
    By koss911 in forum Novashell Game Creation System
    Replies: 1
    Last Post: 12-11-2007, 10:28 PM
  4. Latest Beta Bug/Issue
    By SLATE in forum Funeral Quest
    Replies: 5
    Last Post: 09-03-2004, 06:09 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •