diff options
author | Benjamin Otte <otte@gnome.org> | 2008-09-03 23:01:27 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2008-09-03 23:01:27 +0200 |
commit | ebb39c2e645fcee3305a9405ea2a0e082ec80d00 (patch) | |
tree | ea84e6ee407134592b662613e54615dc6df3ed42 | |
parent | ae5cd6a10195c71b9677d27932cc8b1366f05034 (diff) |
make the windowless disabling be togglable by CFLAGS="-DDISABLE_WINDOWLESS"
easier than hacking sources. And no, asac, you don't want to use that
-rw-r--r-- | src/plugin.c | 6 |
1 files 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) { |