Swapping boolean specifying windowless plugin in accordance with the spec
git-svn-id: svn://10.0.0.236/trunk@37506 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -861,7 +861,10 @@ ns4xPlugin::_setvalue(NPP npp, NPPVariable variable, void *result)
|
||||
switch (variable)
|
||||
{
|
||||
case NPPVpluginWindowBool:
|
||||
return inst->SetWindowless(*((NPBool *)result));
|
||||
{
|
||||
NPBool bWindowless = !(*((NPBool *)result));
|
||||
return inst->SetWindowless(bWindowless);
|
||||
}
|
||||
|
||||
case NPPVpluginTransparentBool:
|
||||
return inst->SetTransparent(*((NPBool *)result));
|
||||
|
||||
@@ -861,7 +861,10 @@ ns4xPlugin::_setvalue(NPP npp, NPPVariable variable, void *result)
|
||||
switch (variable)
|
||||
{
|
||||
case NPPVpluginWindowBool:
|
||||
return inst->SetWindowless(*((NPBool *)result));
|
||||
{
|
||||
NPBool bWindowless = !(*((NPBool *)result));
|
||||
return inst->SetWindowless(bWindowless);
|
||||
}
|
||||
|
||||
case NPPVpluginTransparentBool:
|
||||
return inst->SetTransparent(*((NPBool *)result));
|
||||
|
||||
Reference in New Issue
Block a user