Useful Fix for those Porting VSTGUI based plug-ins to AU
Useful Fix for those Porting VSTGUI based plug-ins to AU
- Subject: Useful Fix for those Porting VSTGUI based plug-ins to AU
- From: Art Gillespie <email@hidden>
- Date: Fri, 26 Sep 2003 13:21:05 -0400
Fellow intrepid porters:
The problem of controls in VSTGUI-based plugins 'running away' in some
hosts (In my case this behavior was manifesting itself in DP 4.1 when
another window with animation (e.g. the performance meter) was open) is
caused by the following code in vstgui.cpp:1946:
void CDrawContext::getMouseLocation (CPoint &point)
{
... other platform switches omitted
#elif MAC
Point where;
GetMouse (&where);
point (where.h, where.v);
#elif MOTIF
...
}
Which should be
Point where;
CGrafPtr save;
GetPort(&save);
SetPort(getPort());
GetMouse (&where);
point (where.h, where.v);
SetPort(save);
Hope that saves someone else an hour or so of debugging :) Also, I no
longer subscribe to vst-development, so if anyone has the inclination
to post this there...
Best,
Art
>>0xBA
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.