summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_cache.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-11-22 16:39:04 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-11-22 16:39:04 +0000
commit46974eec6744f1c6a61e493dcdfe2471aec87c00 (patch)
treef34517b0871593801a9e7785777ab598eb297163 /recordmydesktop/src/rmd_cache.c
parentc1776d202b1f88b6856a4bbab4afc53bcc8b86e0 (diff)
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
Diffstat (limited to 'recordmydesktop/src/rmd_cache.c')
-rw-r--r--recordmydesktop/src/rmd_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c
index 5fe5207..536d217 100644
--- a/recordmydesktop/src/rmd_cache.c
+++ b/recordmydesktop/src/rmd_cache.c
@@ -132,10 +132,10 @@ void InitCacheData(ProgData *pdata,
//we set the buffer only since there's
//no need to initialize the encoder from now.
- width=((pdata->brwin.rgeom.width + 15) >>4)<<4;
- height=((pdata->brwin.rgeom.height + 15) >>4)<<4;
- offset_x=((width-pdata->brwin.rgeom.width)/2)&~1;
- offset_y=((height-pdata->brwin.rgeom.height)/2)&~1;
+ width=((pdata->brwin.rrect.width + 15) >>4)<<4;
+ height=((pdata->brwin.rrect.height + 15) >>4)<<4;
+ offset_x=((width-pdata->brwin.rrect.width)/2)&~1;
+ offset_y=((height-pdata->brwin.rrect.height)/2)&~1;
(pdata)->enc_data=enc_data_t;
© All Rights Reserved