summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-05 17:23:04 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:41 -0700
commit690bc1878842e834048010f10e3903ee95bec729 (patch)
treebba17a59c539760b34920f9e72fff1ab0d99005b /recordmydesktop/src
parent39cfa5d40b1b5ea2a060bfa51c0f573bbc1bf665 (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/src')
-rw-r--r--recordmydesktop/src/rmd_get_frame.c2
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,
© All Rights Reserved