]> git.sesse.net Git - vlc/commitdiff
* Made the opengl effects a list of options instead of textbox
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 7 Oct 2004 20:50:59 +0000 (20:50 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 7 Oct 2004 20:50:59 +0000 (20:50 +0000)
* Lowered the opengl prioriy on OSX to speed up selection proces, while the thing is not working.

modules/video_output/opengl.c

index 6733bcc8eb6f14dd39245253bc0070ab42a76a29..bcdb044e036c59760640e49f06a1bf2fb9ebd124 100644 (file)
@@ -94,14 +94,19 @@ static int SendEvents( vlc_object_t *, char const *,
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
-#define EFFECT_TEXT N_("Select effect")
+#define EFFECT_TEXT N_("Effect")
 #define EFFECT_LONGTEXT N_( \
     "Allows you to select different visual effects.")
 
+static char *ppsz_effects[] = {
+        "none", "cube", "transparent-cube", NULL };
+static char *ppsz_effects_text[] = {
+        N_("None"), N_("Cube"), N_("Transparent Cube"), NULL };
+
 vlc_module_begin();
     set_description( _("OpenGL video output") );
 #ifdef SYS_DARWIN
-    set_capability( "video output", 200 );
+    set_capability( "video output", 0 );
 #else
     set_capability( "video output", 20 );
 #endif
@@ -110,6 +115,7 @@ vlc_module_begin();
 
     add_string( "opengl-effect", "none", NULL, EFFECT_TEXT,
                  EFFECT_LONGTEXT, VLC_TRUE );
+        change_string_list( ppsz_effects, ppsz_effects_text, 0 );
 vlc_module_end();
 
 /*****************************************************************************