Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
Line 75: | Line 75: | ||
== Bridging QuickDraw and CoreGraphics == | == Bridging QuickDraw and CoreGraphics == | ||
There is a way for plugins to draw using CoreGraphics, yet remain compatible with QuickDraw-only browsers. The idea is to use QDBeginCGContext() and QDEndCGContext() to obtain a CGContextRef for the CGrafPtr provided by the browser. | |||
static CGContextRef beginQDPluginUpdate(NPWindow *window) | static CGContextRef beginQDPluginUpdate(NPWindow *window) |