diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-01 08:54:37 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-01 08:54:37 +0000 |
commit | 5181605e277050cdc7cb2e5b8a47cc404817cf8f (patch) | |
tree | 710dc9919cb421d780840c0d27f6aef65a042927 | |
parent | b8ecae4ce6175fafae001182e8669d7e104bbdc0 (diff) |
fullscreen bug fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1819 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_xv.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index b1118ab8a5..c7dc6c0e38 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -248,6 +248,20 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t current_buf=0; + #ifdef HAVE_NEW_GUI + if ( vo_window != None ) + { + mFullscreen=0; + dwidth=mdwidth; dheight=mdheight; + if ( ( vo_dwidth == vo_screenwidth )&&( vo_dheight == vo_screenheight ) ) + { + mFullscreen=1; + dwidth=vo_screenwidth; + dheight=vo_screenwidth * mdheight / mdwidth; + } + } + #endif + XGetGeometry( mDisplay,mywindow,&mRoot,&drwX,&drwY,&drwWidth,&drwHeight,&drwBorderWidth,&drwDepth ); drwX=0; drwY=0; XTranslateCoordinates( mDisplay,mywindow,mRoot,0,0,&drwcX,&drwcY,&mRoot ); @@ -266,7 +280,7 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t #ifdef HAVE_NEW_GUI if ( vo_window == None ) #endif - saver_off(mDisplay); // turning off screen saver + saver_off(mDisplay); // turning off screen saver return 0; } } @@ -323,7 +337,7 @@ static void check_events(void) { mFullscreen=0; dwidth=mdwidth; dheight=mdheight; - if ( ( drwWidth == vo_screenwidth )&&( drwHeight == vo_screenheight ) ) + if ( ( vo_dwidth == vo_screenwidth )&&( vo_dheight == vo_screenheight ) ) { mFullscreen=1; dwidth=vo_screenwidth; |