From 46974eec6744f1c6a61e493dcdfe2471aec87c00 Mon Sep 17 00:00:00 2001 From: iovar Date: Sat, 22 Nov 2008 16:39:04 +0000 Subject: src/rmd_cache.c, src/rmd_cache_frame.c, src/rmd_get_frame.c, src/rmd_init_encoder.c, src/rmd_poll_events.c, src/rmd_rectinsert.c, src/rmd_rectinsert.h, src/rmd_rescue.c, src/rmd_setbrwindow.c, src/rmd_specsfile.c, src/rmd_types.h, src/rmd_update_image.c, src/test-rectinsert-data.c, src/test-rectinsert-types.h, src/test-rectinsert.c: Replaced the custom WGeometry struct-type with the Xlib-provided XRectangle type. Since XRectangle has unsigned width and height, any places in the code where -1 was used in these members of WGeometry to denote invalid rects, where changed to 0 ( zero width or height rects are also considered invalid, wherever met). Also, the following variable renames happened : wgeom => xrect, rgeom => rrect, geom => rect and so on. Some other minor changes in this commit are all related to this type change and also the fact that WGeometry had members of type int, while XRectangle is comprised of short members. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@580 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/rmd_update_image.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'recordmydesktop/src/rmd_update_image.c') diff --git a/recordmydesktop/src/rmd_update_image.c b/recordmydesktop/src/rmd_update_image.c index 0051e69..458172e 100644 --- a/recordmydesktop/src/rmd_update_image.c +++ b/recordmydesktop/src/rmd_update_image.c @@ -58,25 +58,25 @@ void UpdateImage(Display * dpy, GetZPixmap( dpy, specs->root, datatemp, - temp->geom.x, - temp->geom.y, - temp->geom.width, - temp->geom.height); + temp->rect.x, + temp->rect.y, + temp->rect.width, + temp->rect.height); } else{ GetZPixmapSHM(dpy, specs->root, shminfo, shm_opcode, - datatemp,temp->geom.x, - temp->geom.y, - temp->geom.width, - temp->geom.height); + datatemp,temp->rect.x, + temp->rect.y, + temp->rect.width, + temp->rect.height); } UPDATE_YUV_BUFFER(yuv,dtap,NULL, - (temp->geom.x-brwin->rgeom.x+enc->x_offset), - (temp->geom.y-brwin->rgeom.y+enc->y_offset), - (temp->geom.width),(temp->geom.height), + (temp->rect.x-brwin->rrect.x+enc->x_offset), + (temp->rect.y-brwin->rrect.y+enc->y_offset), + (temp->rect.width),(temp->rect.height), no_quick_subsample, specs->depth); temp=temp->next; -- cgit v1.2.3