Updating the sample plugin with performance optimizations and better audio support.

This commit is contained in:
Derek Sollenberger
2009-07-09 09:19:39 -04:00
parent ef864da77f
commit 21f3991238
11 changed files with 174 additions and 102 deletions

View File

@@ -124,6 +124,10 @@ FormPlugin::~FormPlugin() {
gPaintI.deletePaint(m_paintText);
}
bool FormPlugin::supportsDrawingModel(ANPDrawingModel model) {
return (model == kBitmap_ANPDrawingModel);
}
void FormPlugin::draw(ANPCanvas* canvas) {
NPP instance = this->inst();
PluginObject *obj = (PluginObject*) instance->pdata;