summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-03 13:12:46 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-03 13:12:46 +0000
commit5e1d8aafed1cf7c3d67345a7be1a1c06c53ade77 (patch)
tree174a26e12102e92046dc376f211fdf80b6cf8ca9 /libvo/vo_x11.c
parent5568a8133ad5cdb906bb2baef065fd605fe395ee (diff)
downloadmpv-5e1d8aafed1cf7c3d67345a7be1a1c06c53ade77.tar.bz2
mpv-5e1d8aafed1cf7c3d67345a7be1a1c06c53ade77.tar.xz
fix aspect ratio handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5946 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c58
1 files changed, 1 insertions, 57 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index d5b8bc5434..078578258f 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -250,6 +250,7 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
if(in_format==IMGFMT_I420 || in_format==IMGFMT_IYUV) in_format=IMGFMT_YV12;
srcW= width;
srcH= height;
+ vo_dwidth=width; vo_dheight=height;
if( flags&0x03 ) fullscreen = 1;
if( flags&0x02 ) vm = 1;
@@ -622,14 +623,6 @@ static uint32_t preinit(const char *arg)
return 0;
}
-#if 0
-/* for runtime fullscreen switching */
-static int vo_fs_oldx = -1;
-static int vo_fs_oldy = -1;
-static int vo_fs_oldwidth = -1;
-static int vo_fs_oldheight = -1;
-#endif
-
static uint32_t control(uint32_t request, void *data, ...)
{
switch (request) {
@@ -641,55 +634,6 @@ static uint32_t control(uint32_t request, void *data, ...)
return get_image(data);
case VOCTRL_FULLSCREEN:
vo_x11_fullscreen();
-/*
- if ((vo_fs_oldwidth == -1) && (vo_fs_oldheight == -1))
- {
- int foo;
- Window root;
-
-#ifdef LOCAL_LOOKUP
- XGetGeometry(mDisplay, vo_window, &root, &foo, &foo,
- &vo_fs_oldwidth, &vo_fs_oldheight, &foo, &foo);
-
- XTranslateCoordinates(mDisplay, vo_window, root, 0, 0,
- &vo_fs_oldx, &vo_fs_oldy,(Window *) &foo);
-#else
- vo_fs_oldwidth = vo_dwidth;
- vo_fs_oldheight = vo_dheight;
- vo_fs_oldx = vo_dx;
- vo_fs_oldy = vo_dy;
-#endif
-
- mp_msg(MSGT_VO,MSGL_V,"X11 Fullscreen: saved old place: %dx%d-%dx%d\n",
- vo_fs_oldx, vo_fs_oldy, vo_fs_oldwidth, vo_fs_oldheight);
-
- // resize
- vo_dwidth = vo_screenwidth;
- vo_dheight = vo_screenheight;
- vo_x11_decoration( mDisplay,vo_window,0 );
- XMoveResizeWindow(mDisplay, vo_window, 0, 0,
- vo_screenwidth, vo_screenheight);
- XSync(mDisplay, False);
- }
- else
- {
- vo_x11_decoration( mDisplay,vo_window,1 );
- XMoveResizeWindow(mDisplay, vo_window, vo_fs_oldx, vo_fs_oldy,
- vo_fs_oldwidth, vo_fs_oldheight);
-
-
-#ifdef LOCAL_LOOKUP
- // restore
- vo_dwidth = vo_fs_oldwidth;
- vo_dheight = vo_fs_oldheight;
-#endif
-
- // clean
- vo_fs_oldwidth = -1;
- vo_fs_oldheight = -1;
- XSync(mDisplay, False);
- }
-*/
return VO_TRUE;
}
return VO_NOTIMPL;