Commit 00155d40 authored by Laurent Aimar's avatar Laurent Aimar

Fixed xcb resize support.

Yep, there is some black magic here ;)
parent ad9613a7
...@@ -427,6 +427,8 @@ static int Init (vout_thread_t *vout) ...@@ -427,6 +427,8 @@ static int Init (vout_thread_t *vout)
const xcb_screen_t *screen = p_sys->screen; const xcb_screen_t *screen = p_sys->screen;
unsigned x, y, width, height; unsigned x, y, width, height;
I_OUTPUTPICTURES = 0;
/* Determine parent window and size */ /* Determine parent window and size */
if (vout->b_fullscreen) if (vout->b_fullscreen)
{ {
...@@ -534,8 +536,8 @@ static void Deinit (vout_thread_t *vout) ...@@ -534,8 +536,8 @@ static void Deinit (vout_thread_t *vout)
{ {
vout_sys_t *p_sys = vout->p_sys; vout_sys_t *p_sys = vout->p_sys;
while (I_OUTPUTPICTURES > 0) for (int i = 0; i < I_OUTPUTPICTURES; i++)
PictureDeinit (PP_OUTPUTPICTURE[--I_OUTPUTPICTURES]); PictureDeinit (PP_OUTPUTPICTURE[i]);
xcb_unmap_window (p_sys->conn, p_sys->window); xcb_unmap_window (p_sys->conn, p_sys->window);
xcb_destroy_window (p_sys->conn, p_sys->window); xcb_destroy_window (p_sys->conn, p_sys->window);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment