Commit 6256bbe2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Made the opengl effects a list of options instead of textbox

* Lowered the opengl prioriy on OSX to speed up selection proces, while the thing is not working.
parent df7993ac
...@@ -94,14 +94,19 @@ static int SendEvents( vlc_object_t *, char const *, ...@@ -94,14 +94,19 @@ static int SendEvents( vlc_object_t *, char const *,
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
#define EFFECT_TEXT N_("Select effect") #define EFFECT_TEXT N_("Effect")
#define EFFECT_LONGTEXT N_( \ #define EFFECT_LONGTEXT N_( \
"Allows you to select different visual effects.") "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(); vlc_module_begin();
set_description( _("OpenGL video output") ); set_description( _("OpenGL video output") );
#ifdef SYS_DARWIN #ifdef SYS_DARWIN
set_capability( "video output", 200 ); set_capability( "video output", 0 );
#else #else
set_capability( "video output", 20 ); set_capability( "video output", 20 );
#endif #endif
...@@ -110,6 +115,7 @@ vlc_module_begin(); ...@@ -110,6 +115,7 @@ vlc_module_begin();
add_string( "opengl-effect", "none", NULL, EFFECT_TEXT, add_string( "opengl-effect", "none", NULL, EFFECT_TEXT,
EFFECT_LONGTEXT, VLC_TRUE ); EFFECT_LONGTEXT, VLC_TRUE );
change_string_list( ppsz_effects, ppsz_effects_text, 0 );
vlc_module_end(); vlc_module_end();
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment