[vlc-devel] commit: XCB screen: fix default height/width when x/y specified ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jun 8 22:27:24 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 8 20:32:00 2009 +0300| [761cb12de80a5c161af222122ae75b03b3e8bd8f] | committer: Rémi Denis-Courmont
XCB screen: fix default height/width when x/y specified
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=761cb12de80a5c161af222122ae75b03b3e8bd8f
---
modules/access/screen/xcb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/screen/xcb.c b/modules/access/screen/xcb.c
index ed70c39..e66f6a3 100644
--- a/modules/access/screen/xcb.c
+++ b/modules/access/screen/xcb.c
@@ -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;
More information about the vlc-devel
mailing list