[Swfdec-commits] src/plugin.c

Benjamin Otte company at kemper.freedesktop.org
Wed Sep 3 14:04:20 PDT 2008


 src/plugin.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ebb39c2e645fcee3305a9405ea2a0e082ec80d00
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Sep 3 23:01:27 2008 +0200

    make the windowless disabling be togglable by CFLAGS="-DDISABLE_WINDOWLESS"
    
    easier than hacking sources. And no, asac, you don't want to use that

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) {


More information about the Swfdec-commits mailing list