diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-22 16:16:02 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-22 16:16:02 +0000 |
commit | 3cb2033d4480951f95495db385f5591c6c3ca172 (patch) | |
tree | 860c8965e1171cad570aa57813e94f68bf5a8b74 /libvo | |
parent | 06ebd66015ae446564f505ed3345fb50a5e74bfc (diff) |
clear the window if resized but no scaling used. Enable runtime fullscreen selectin when no zooming available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4809 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_x11.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 862650ab6d..7ec0ce6487 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -113,7 +113,14 @@ static int srcH=-1; static int aspect; // 1<<16 based fixed point aspect, so that the aspect stays correct during resizing static void check_events(){ - vo_x11_check_events(mDisplay); + int ret = vo_x11_check_events(mDisplay); + + /* clear the old window */ + if (ret & VO_EVENT_RESIZE) + { + XSetBackground(mDisplay, vo_gc, 0); + XClearWindow(mDisplay, vo_window); + } } static void draw_alpha_32(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ @@ -597,11 +604,6 @@ static uint32_t control(uint32_t request, void *data, ...) case VOCTRL_GUISUPPORT: return VO_TRUE; case VOCTRL_FULLSCREEN: - if (!zoomFlag) - { - mp_msg(MSGT_VO, MSGL_WARN, "X11 Fullscreen: not available without zooming enabled\n"); - return VO_NOTAVAIL; - } if ((vo_fs_oldwidth == -1) && (vo_fs_oldheight == -1)) { int foo; |