[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.76,1.77
Alex Beregszaszi
alex at mplayer.dev.hu
Fri Feb 22 17:16:05 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv23854
Modified Files:
vo_x11.c
Log Message:
clear the window if resized but no scaling used. Enable runtime fullscreen selectin when no zooming available
Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- vo_x11.c 22 Feb 2002 15:22:27 -0000 1.76
+++ vo_x11.c 22 Feb 2002 16:16:02 -0000 1.77
@@ -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;
More information about the MPlayer-cvslog
mailing list