summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-20 21:49:45 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-20 21:49:45 +0000
commit8c94b3ddd0ddb5e91f8c2ee0996489fb14abbf70 (patch)
tree817f92f7f1f8d5056a83b706eead9f3b4bd9beb2 /libvo/vo_xv.c
parentb5fc7e65418481e307c81e3a833a006975c4dede (diff)
downloadmpv-8c94b3ddd0ddb5e91f8c2ee0996489fb14abbf70.tar.bz2
mpv-8c94b3ddd0ddb5e91f8c2ee0996489fb14abbf70.tar.xz
didn't handle flags parameter correctly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@845 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 82d727cef5..0f1df47de4 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -93,7 +93,7 @@ static uint32_t drwcX,drwcY,dwidth,dheight,mFullscreen;
* 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 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t
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 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t
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 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t
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);