summaryrefslogtreecommitdiffstats
path: root/gpu/gpu_plugin/gpu_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/gpu_plugin/gpu_plugin.cc')
-rw-r--r--gpu/gpu_plugin/gpu_plugin.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/gpu/gpu_plugin/gpu_plugin.cc b/gpu/gpu_plugin/gpu_plugin.cc
index 10df734..dc69e61 100644
--- a/gpu/gpu_plugin/gpu_plugin.cc
+++ b/gpu/gpu_plugin/gpu_plugin.cc
@@ -38,8 +38,13 @@ int16 NPP_HandleEvent(NPP instance, void* event) {
NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) {
if (!instance)
return NPERR_INVALID_INSTANCE_ERROR;
-
- return NPERR_GENERIC_ERROR;
+ switch (variable) {
+ case NPPVpluginNeedsXEmbed:
+ *static_cast<NPBool *>(value) = 1;
+ return NPERR_NO_ERROR;
+ default:
+ return NPERR_INVALID_PARAM;
+ }
}
NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) {