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_gl.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_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index ac4ec010d5..37c6294466 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -99,7 +99,6 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { // int screen; - int dwidth,dheight; unsigned int fg, bg; char *hello = (title == NULL) ? "OpenGL rulez" : title; // char *name = ":0.0"; @@ -118,13 +117,16 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 if (X_already_started) return -1; if(!vo_init()) return -1; + aspect_save_orig(width,height); + aspect_save_prescale(d_width,d_height); + aspect_save_screenres(vo_screenwidth,vo_screenheight); + X_already_started++; - dwidth=d_width; dheight=d_height; + aspect(&d_width,&d_height,A_NOZOOM); #ifdef X11_FULLSCREEN if( flags&0x01 ){ // (-fs) - aspect(&d_width,&d_height,vo_screenwidth,vo_screenheight); - dwidth=d_width; dheight=d_height; + aspect(&d_width,&d_height,A_ZOOM); } #endif hint.x = 0; |