changeset 844:108ea5157cbc

didn't handle flags parameter correctly
author arpi_esp
date Sun, 20 May 2001 21:49:45 +0000
parents a88b87750b8a
children 29a3f57d5e1d
files libvo/vo_xmga.c libvo/vo_xv.c
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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);