# HG changeset patch # User alex # Date 1014394562 0 # Node ID 4eaa205201b087234e31642c1cad1efb602bc4f5 # Parent 156482788cafd51157f2b665b5faab3a96c401a4 clear the window if resized but no scaling used. Enable runtime fullscreen selectin when no zooming available diff -r 156482788caf -r 4eaa205201b0 libvo/vo_x11.c --- a/libvo/vo_x11.c Fri Feb 22 15:25:11 2002 +0000 +++ b/libvo/vo_x11.c Fri Feb 22 16:16:02 2002 +0000 @@ -113,7 +113,14 @@ 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 @@ 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;