Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
Line 71: | Line 71: | ||
// Check if the browser supports the CoreGraphics drawing model | // Check if the browser supports the CoreGraphics drawing model | ||
NPBool supportsCoreGraphics = FALSE; | NPBool supportsCoreGraphics = FALSE; | ||
if (browser->getvalue(instance, NPNVsupportsCoreGraphicsBool, &supportsCoreGraphics) != NPERR_NO_ERROR || !supportsCoreGraphics) | if (browser->getvalue(instance, NPNVsupportsCoreGraphicsBool, &supportsCoreGraphics) != NPERR_NO_ERROR || | ||
!supportsCoreGraphics) | |||
return NPERR_INCOMPATIBLE_VERSION_ERROR; | return NPERR_INCOMPATIBLE_VERSION_ERROR; | ||
// Set the drawing model | // Set the drawing model |