Commit 678fb74b authored by Felix Paul Kühne's avatar Felix Paul Kühne

npmac: work-around our CoreAnimation implementation which doesn't support invalidation yet

Fixes vout within Firefox and Chrome
parent 7470b60d
......@@ -438,6 +438,7 @@ NPError Private_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16
return NPERR_INCOMPATIBLE_VERSION_ERROR;
}
/* FIXME by implementing CoreAnimation invalidation
NPBool supportsInvalidatingCoreAnimation = FALSE;
err = NPN_GetValue(instance, NPNVsupportsInvalidatingCoreAnimationBool, &supportsInvalidatingCoreAnimation);
if (err != NPERR_NO_ERROR || !supportsInvalidatingCoreAnimation)
......@@ -449,14 +450,14 @@ NPError Private_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16
fprintf(stderr, "Error in New: couldn't activate Invalidating CoreAnimation drawing model\n");
return NPERR_INCOMPATIBLE_VERSION_ERROR;
}
} else {
} else {*/
fprintf(stderr, "New: falling back to non-invalidating CoreAnimation drawing, since invalidation is not supported\n");
err = NPN_SetValue(instance, NPPVpluginDrawingModel, (void*)NPDrawingModelCoreAnimation);
if (err != NPERR_NO_ERROR) {
fprintf(stderr, "Error in New: couldn't activate CoreAnimation drawing model\n");
return NPERR_INCOMPATIBLE_VERSION_ERROR;
}
}
//}
}
NPBool supportsCocoaEvents = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment