diff options
Diffstat (limited to 'recordmydesktop/src/rmd_cache.c')
-rw-r--r-- | recordmydesktop/src/rmd_cache.c | 8 |
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; |