From ebb39c2e645fcee3305a9405ea2a0e082ec80d00 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 3 Sep 2008 23:01:27 +0200 Subject: make the windowless disabling be togglable by CFLAGS="-DDISABLE_WINDOWLESS" easier than hacking sources. And no, asac, you don't want to use that --- src/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index ac59903..48fd413 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -36,7 +36,7 @@ /* This is here so we can quickly disable windowless support. For now it's * missing some features (cursor support) and redraws seem to be buggy */ -#define ENABLE_WINDOWLESS +//#define DISABLE_WINDOWLESS NPNetscapeFuncs mozilla_funcs; @@ -179,7 +179,7 @@ swfdec_mozilla_make_sure_this_thing_stays_in_memory (void) return TRUE; } -#ifdef ENABLE_WINDOWLESS +#ifndef DISABLE_WINDOWLESS /* returns true if this instance can run windowless */ static gboolean plugin_try_windowless (NPP instance) @@ -230,7 +230,7 @@ plugin_new (NPMIMEType mime_type, NPP instance, * won't be unloaded, i.e. NPPVpluginKeepLibraryInMemory was successful */ swfdec_init (); -#ifdef ENABLE_WINDOWLESS +#ifndef DISABLE_WINDOWLESS /* parse pre-creation properties */ for (i = 0; i < argc; i++) { if (g_ascii_strcasecmp (argn[i], "wmode") == 0) { -- cgit v1.2.3