diff options
author | vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-06 01:51:31 +0000 |
---|---|---|
committer | vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-06 01:51:31 +0000 |
commit | c5cf04f5430fa3a44ea1d92d5bcf75ca0623f5a7 (patch) | |
tree | f3bf4919423e38dab02ffedf57bae2379839b638 /libvo | |
parent | 71045b33a33f4b3c4c05621a80f059840879bb97 (diff) | |
download | mpv-c5cf04f5430fa3a44ea1d92d5bcf75ca0623f5a7.tar.bz2 mpv-c5cf04f5430fa3a44ea1d92d5bcf75ca0623f5a7.tar.xz |
Initial win32 gui release.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18918 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_directx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index 57603104d7..05b9cc5bb6 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -35,6 +35,10 @@ #include "aspect.h" #include "geometry.h" +#ifdef HAVE_NEW_GUI +#include "Gui/interface.h" +#endif + #ifndef WM_XBUTTONDOWN # define WM_XBUTTONDOWN 0x020B # define WM_XBUTTONUP 0x020C @@ -1311,6 +1315,13 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin vo_dx = 0; vo_dy = 0; +#ifdef HAVE_NEW_GUI + if(use_gui && WinID != -1){ + vo_dwidth = d_image_width; + vo_dheight = d_image_height; + guiGetEvent(guiSetShVideo, 0); + } +#endif /*release all directx objects*/ if (g_cc != NULL)g_cc->lpVtbl->Release(g_cc); g_cc=NULL; |