diff options
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r-- | libvo/vo_directx.c | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index 014ee29d0e..00294b881d 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -31,7 +31,6 @@ #include "video_out_internal.h" #include "fastmemcpy.h" #include "input/input.h" -#include "libmpcodecs/vd.h" #include "osdep/keycodes.h" #include "input/mouse.h" #include "mp_msg.h" @@ -40,10 +39,6 @@ #include "mp_fifo.h" #include "sub.h" -#ifdef CONFIG_GUI -#include "gui/interface.h" -#endif - #ifndef WM_XBUTTONDOWN # define WM_XBUTTONDOWN 0x020B # define WM_XBUTTONUP 0x020C @@ -1295,11 +1290,6 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin if(format != primary_image_format)nooverlay = 0; window_aspect= (float)d_image_width / (float)d_image_height; -#ifdef CONFIG_GUI - if(use_gui){ - guiGetEvent(guiSetShVideo, 0); - } -#endif /*release all directx objects*/ if (g_cc != NULL)g_cc->lpVtbl->Release(g_cc); g_cc=NULL; @@ -1475,7 +1465,7 @@ static uint32_t color_ctrl_get(char *what, int *value) return r; } -static int control(uint32_t request, void *data, ...) +static int control(uint32_t request, void *data) { switch (request) { @@ -1567,22 +1557,12 @@ static int control(uint32_t request, void *data, ...) return VO_TRUE; } case VOCTRL_SET_EQUALIZER: { - va_list ap; - int value; - - va_start(ap, data); - value = va_arg(ap, int); - va_end(ap); - return color_ctrl_set(data, value); + struct voctrl_set_equalizer_args *args = data; + return color_ctrl_set(args->name, args->value); } case VOCTRL_GET_EQUALIZER: { - va_list ap; - int *value; - - va_start(ap, data); - value = va_arg(ap, int*); - va_end(ap); - return color_ctrl_get(data, value); + struct voctrl_get_equalizer_args *args = data; + return color_ctrl_get(args->name, args->valueptr); } case VOCTRL_UPDATE_SCREENINFO: if (vidmode) { |