diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-18 02:42:20 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-18 02:42:20 +0000 |
commit | 14fe0175c05de7e246e7674740209f19ebe4f5e1 (patch) | |
tree | cef2ab06a3c3435184c798b0b54b5c2ba89d8f22 /libvo/vo_xmga.c | |
parent | 50f2513fc8d4017a4b4a8a97dcfda2a545979f52 (diff) | |
download | mpv-14fe0175c05de7e246e7674740209f19ebe4f5e1.tar.bz2 mpv-14fe0175c05de7e246e7674740209f19ebe4f5e1.tar.xz |
Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2250 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xmga.c')
-rw-r--r-- | libvo/vo_xmga.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index f3a2f4d4df..ed9ea4f2d6 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -230,11 +230,14 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_ if (!vo_init()) return -1; + aspect_save_orig(width,height); + aspect_save_prescale(d_width,d_height); + aspect_save_screenres(vo_screenwidth,vo_screenheight); + mvWidth=width; mvHeight=height; wndX=0; wndY=0; wndWidth=d_width; wndHeight=d_height; - dwidth=d_width; dheight=d_height; #ifdef HAVE_NEW_GUI // mdwidth=d_width; mdheight=d_height; mdwidth=width; mdheight=height; @@ -250,6 +253,7 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_ default: printf( "Sorry, this (%d) color depth not supported.\n",vo_depthonscreen ); return -1; } + aspect(&d_width,&d_height,A_NOZOOM); #ifdef HAVE_NEW_GUI if ( vo_window == None ) { @@ -259,10 +263,10 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_ wndWidth=vo_screenwidth; wndHeight=vo_screenheight; #ifdef X11_FULLSCREEN - aspect(&d_width,&d_height,vo_screenwidth,vo_screenheight); - dwidth=d_width; dheight=d_height; + aspect(&d_width,&d_height,A_ZOOM); #endif } + dwidth=d_width; dheight=d_height; XGetWindowAttributes( mDisplay,DefaultRootWindow( mDisplay ),&attribs ); mDepth=attribs.depth; |