From a2b4da36b3ded538101373003370b9e65e7e6bd7 Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Wed, 20 Jan 2010 18:59:38 -0500 Subject: [PATCH] Fix default plugin drawing on Mac OS X. No bug. r=smichaud --- modules/plugin/default/mac/DefaultPlugin.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugin/default/mac/DefaultPlugin.mm b/modules/plugin/default/mac/DefaultPlugin.mm index 0c689790740f..4aa7e9c8f846 100644 --- a/modules/plugin/default/mac/DefaultPlugin.mm +++ b/modules/plugin/default/mac/DefaultPlugin.mm @@ -227,7 +227,7 @@ void drawPlugin(NPP instance, NPCocoaEvent* event) { PluginInstance* currentInstance = (PluginInstance*)(instance->pdata); CGContextRef cgContext = event->data.draw.context; - if (cgContext) + if (!cgContext) return; float windowWidth = currentInstance->window.width;