Commit 761cb12d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB screen: fix default height/width when x/y specified

parent 814c0649
......@@ -180,10 +180,10 @@ static int Open (vlc_object_t *obj)
p_sys->y = var_CreateGetInteger (obj, "screen-top");
p_sys->w = var_CreateGetInteger (obj, "screen-width");
if (p_sys->w == 0)
p_sys->w = geo->width;
p_sys->w = geo->width - p_sys->x;
p_sys->h = var_CreateGetInteger (obj, "screen-height");
if (p_sys->h == 0)
p_sys->h = geo->height;
p_sys->h = geo->height - p_sys->y;
uint32_t chroma = 0;
uint8_t bpp = geo->depth;
......
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