From 690bc1878842e834048010f10e3903ee95bec729 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 5 Jul 2020 17:23:04 -0700 Subject: get_frame: remove pointless XInitImage() XCreateImage() returns a fully initialized ready-to-use XImage, I have no idea why the author did this. --- recordmydesktop/src/rmd_get_frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3