User Tag List

Results 1 to 3 of 3

Thread: Need help with surfaces

  1. #1
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with surfaces

    A while back I wrote and releases the dynamic grid object. Recently a bug has been reported where simultaneously shrinking and moving the object causes the original area of the surface, minus the new area, to be pasted into the background. In all other cases (e.g. when the object doesn't move in the same event loop as it is being resized), this pasting bug doesn't occur.

    I don't have enough experience with surfaces to know what's going on, so if one of you surface-oriented extension devs would like to offer some tips, I'd much appreciate it.

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Need help with surfaces

    Usually this kind of problem occurs when you display your object at coordinates that are taken into account only in the next loop.

    In your DisplayRunObject function, do you display your surface at (hoX,hoY)? If so, try displaying it at (hoRect.left,hoRect.top).

    And if you change the coordinates or the size yourself in HandleRunObject, make sure you set rdPtr->roc.rcChanged to 1 so that the coordinates are validated.


  3. #3
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with surfaces

    Thanks. I'm actually using GetRunObjectSurface instead so I don't manage the coordinates directly, but I was setting the ho size in the action instead of handleRunObject. Moving it there fixed the bug.

Similar Threads

  1. Performance problems with surfaces
    By 2xD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th February 2013, 07:37 PM
  2. How do I get the character to slide down surfaces, not stick to them?
    By emberjed in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd December 2012, 04:18 PM
  3. Capture 3D surfaces with a flash camera
    By Tuna in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 27th August 2008, 11:33 PM
  4. Surfaces
    By Ben in forum Extension Development
    Replies: 4
    Last Post: 24th August 2007, 11:20 AM

Posting Permissions

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