Browse Source

Changed NPAPI builds to always use the Cocoa UI model unless JUCE_USE_NPAPI_CARBON_UI is set to 1

tags/2021-05-28
jules 12 years ago
parent
commit
0d4d67da40
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/juce_browser_plugin/wrapper/juce_NPAPI_GlueCode.cpp

+ 4
- 4
modules/juce_browser_plugin/wrapper/juce_NPAPI_GlueCode.cpp View File

@@ -471,7 +471,7 @@ public:
NP_CGContext* const cgContext = (window != nullptr) ? (NP_CGContext*) window->window : nullptr;
log ("NP_CGContext: " + String::toHexString ((pointer_sized_int) cgContext));
#ifndef __LP64__
#if JUCE_USE_NPAPI_CARBON_UI
WindowRef windowRef = cgContext != nullptr ? (WindowRef) cgContext->window : 0;
if (windowRef != 0)
@@ -999,10 +999,10 @@ NPError NPP_New (NPMIMEType pluginType, NPP npp, ::uint16 mode, ::int16 argc, ch
#if JUCE_MAC
browser.setvalue (npp, (NPPVariable) NPNVpluginDrawingModel, (void*) NPDrawingModelCoreGraphics);
#ifdef __LP64__
browser.setvalue (npp, (NPPVariable) 1001 /*NPPVpluginEventModel*/, (void*) 1 /*NPEventModelCocoa*/);
#else
#if JUCE_USE_NPAPI_CARBON_UI
browser.setvalue (npp, (NPPVariable) 1001 /*NPPVpluginEventModel*/, 0 /*NPEventModelCarbon*/);
#else
browser.setvalue (npp, (NPPVariable) 1001 /*NPPVpluginEventModel*/, (void*) 1 /*NPEventModelCocoa*/);
#endif
#endif


Loading…
Cancel
Save