diff options
author | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-09-21 11:27:11 +0000 |
---|---|---|
committer | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-09-21 11:27:11 +0000 |
commit | a7093bca30f4581de3829d034eca864d3fc02422 (patch) | |
tree | 9ca8458491a4654f291797f10fcf2f50b72ac3d6 /libvo | |
parent | 3f9f1d95b76d955d648d9f6b87ef17578f6d2250 (diff) |
dont fix things at the wrong place
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10906 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_gl2.c | 6 | ||||
-rw-r--r-- | libvo/x11_common.c | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index d345fcf7f8..12b5e51c5c 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -565,9 +565,13 @@ static void drawTextureDisplay () static void resize(int x,int y){ printf("[gl2] Resize: %dx%d\n",x,y); if( vo_fs ) + { + aspect(&x, &y, A_ZOOM); glViewport( (vo_screenwidth-x)/2, (vo_screenheight-y)/2, x, y); - else + } else { + aspect(&x, &y, A_NOZOOM); glViewport( 0, 0, x, y ); + } glMatrixMode(GL_PROJECTION); glLoadIdentity(); diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 330e03b48e..7d4a4c0dca 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -700,7 +700,6 @@ int vo_x11_check_events(Display *mydisplay){ if ( vo_window == None ) break; vo_dwidth=Event.xconfigure.width; vo_dheight=Event.xconfigure.height; - if (vo_fs) aspect(&vo_dwidth, &vo_dheight, A_ZOOM); #if 0 /* when resizing, x and y are zero :( */ vo_dx=Event.xconfigure.x; |