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.
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.