diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-05 17:23:04 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-11 13:36:41 -0700 |
commit | 690bc1878842e834048010f10e3903ee95bec729 (patch) | |
tree | bba17a59c539760b34920f9e72fff1ab0d99005b /recordmydesktop | |
parent | 39cfa5d40b1b5ea2a060bfa51c0f573bbc1bf665 (diff) |
get_frame: remove pointless XInitImage()
XCreateImage() returns a fully initialized ready-to-use XImage,
I have no idea why the author did this.
Diffstat (limited to 'recordmydesktop')
-rw-r--r-- | recordmydesktop/src/rmd_get_frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recordmydesktop/src/rmd_get_frame.c b/recordmydesktop/src/rmd_get_frame.c index 055536d..780fe70 100644 --- a/recordmydesktop/src/rmd_get_frame.c +++ b/recordmydesktop/src/rmd_get_frame.c @@ -148,7 +148,7 @@ static int rmdFirstFrame(ProgData *pdata, XImage **image, XShmSegmentInfo *shmin rrect->height, 8, 0); - XInitImage(*image); + rmdGetZPixmap( pdata->dpy,pdata->specs.root, (*image)->data, rrect->x, |