Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Useful Fix for those Porting VSTGUI based plug-ins to AU



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.