/* * resize buffer: note we don't resize window here */ GF_Err X11_ResizeBackBuffer (struct _video_out *vout, u32 newWidth, u32 newHeight) { X11VID (); if ((newWidth != xWindow->back_buffer->width) || (newHeight != xWindow->back_buffer->height)) { if ((newWidth >= 32) && (newHeight >= 32)) return X11_InitBackBuffer (vout, newWidth, newHeight); } return GF_OK; }
/* * resize buffer: note we don't resize window here */ GF_Err X11_ResizeBackBuffer (struct _video_out *vout, u32 newWidth, u32 newHeight) { X11VID (); u32 w = xWindow->surface ? xWindow->surface->width : xWindow->pwidth; u32 h = xWindow->surface ? xWindow->surface->height : xWindow->pheight; if (!xWindow->is_init || (newWidth != w) || (newHeight != h)) { if ((newWidth >= 32) && (newHeight >= 32)) return X11_InitBackBuffer (vout, newWidth, newHeight); } return GF_OK; }