# HG changeset patch # User arpi_esp # Date 990395385 0 # Node ID 108ea5157cbc3477d1720b488f8f857840dbe8e3 # Parent a88b87750b8a6d53164d2cfa9a65cbd1a117545d didn't handle flags parameter correctly diff -r a88b87750b8a -r 108ea5157cbc libvo/vo_xmga.c --- a/libvo/vo_xmga.c Sun May 20 13:24:41 2001 +0000 +++ b/libvo/vo_xmga.c Sun May 20 21:49:45 2001 +0000 @@ -245,7 +245,7 @@ #ifdef HAVE_GUI mdwidth=d_width; mdheight=d_height; #endif - mFullscreen=fullscreen; + mFullscreen=fullscreen&1; switch ( vo_depthonscreen ) { @@ -260,7 +260,7 @@ if ( vo_window == None ) { #endif - if ( fullscreen ) + if ( mFullscreen ) { wndWidth=vo_screenwidth; wndHeight=vo_screenheight; @@ -285,7 +285,7 @@ vinfo.visual,xswamask,&xWAttribs ); vo_hidecursor(mDisplay,mWindow); - if ( fullscreen ) vo_x11_decoration( mDisplay,mWindow,0 ); + if ( mFullscreen ) vo_x11_decoration( mDisplay,mWindow,0 ); XGetNormalHints( mDisplay,mWindow,&hint ); hint.x=wndX; hint.y=wndY; diff -r a88b87750b8a -r 108ea5157cbc libvo/vo_xv.c --- a/libvo/vo_xv.c Sun May 20 13:24:41 2001 +0000 +++ b/libvo/vo_xv.c Sun May 20 21:49:45 2001 +0000 @@ -93,7 +93,7 @@ * connect to server, create and map window, * allocate colors and (shared) memory */ -static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format) +static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { int screen; char *hello = (title == NULL) ? "Xv render" : title; @@ -110,7 +110,7 @@ image_width = width; image_format=format; - mFullscreen=fullscreen; + mFullscreen=flags&1; dwidth=d_width; dheight=d_height; if(getenv("DISPLAY")) name = getenv("DISPLAY"); @@ -133,7 +133,7 @@ hint.y = 0; hint.width = d_width; hint.height = d_height; - if ( fullscreen ) + if ( mFullscreen ) { hint.width=vo_screenwidth; hint.height=vo_screenheight; @@ -155,7 +155,7 @@ XSelectInput(mydisplay, mywindow, StructureNotifyMask | KeyPressMask ); XSetStandardProperties(mydisplay, mywindow, hello, hello, None, NULL, 0, &hint); - if ( fullscreen ) vo_x11_decoration( mydisplay,mywindow,0 ); + if ( mFullscreen ) vo_x11_decoration( mydisplay,mywindow,0 ); XMapWindow(mydisplay, mywindow); XFlush(mydisplay); XSync(mydisplay, False);