summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-30 20:13:14 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-30 20:13:14 +0000
commitcc6c56b08e3ff86489a1f537b73cb487fd86b400 (patch)
treed6e3c4e38538d3ef4984a65dcc8f75ca0dfce769 /libvo
parenta297081a672068004771ba08928b88b346dd1c27 (diff)
downloadmpv-cc6c56b08e3ff86489a1f537b73cb487fd86b400.tar.bz2
mpv-cc6c56b08e3ff86489a1f537b73cb487fd86b400.tar.xz
fix gui support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1784 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xmga.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c
index 4089d26fad..e6dae93142 100644
--- a/libvo/vo_xmga.c
+++ b/libvo/vo_xmga.c
@@ -87,7 +87,7 @@ static Window mRoot;
static uint32_t drwX,drwY,drwWidth,drwHeight,drwBorderWidth,drwDepth;
static uint32_t drwcX,drwcY,dwidth,dheight,mFullscreen;
-#ifdef HAVE_GUI
+#ifdef HAVE_NEW_GUI
static uint32_t mdwidth,mdheight;
#endif
@@ -97,7 +97,6 @@ static XSetWindowAttributes xWAttribs;
static void mDrawColorKey( void )
{
- XClearWindow( mDisplay,mWindow );
XSetForeground( mDisplay,mGC,fgColor );
XFillRectangle( mDisplay,mWindow,mGC,drwX,drwY,drwWidth,(mFullscreen?drwHeight - 1:drwHeight) );
XFlush( mDisplay );
@@ -110,7 +109,7 @@ static void set_window(){
XTranslateCoordinates( mDisplay,mWindow,mRoot,0,0,&drwcX,&drwcY,&mRoot );
fprintf( stderr,"[xmga] dcx: %d dcy: %d dx: %d dy: %d dw: %d dh: %d\n",drwcX,drwcY,drwX,drwY,drwWidth,drwHeight );
- #ifdef HAVE_GUI
+ #ifdef HAVE_NEW_GUI
if ( vo_window != None )
{
mFullscreen=0;
@@ -235,7 +234,7 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_
wndX=0; wndY=0;
wndWidth=d_width; wndHeight=d_height;
dwidth=d_width; dheight=d_height;
- #ifdef HAVE_GUI
+ #ifdef HAVE_NEW_GUI
mdwidth=d_width; mdheight=d_height;
#endif
mFullscreen=fullscreen&1;