From 11e78df869956c67857a17d43297ac6b42eae7ea Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Wed, 20 Oct 2010 19:43:28 +0900 Subject: [PATCH] enable screen capture --- src/scrcapture.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/scrcapture.c b/src/scrcapture.c index 590671b..d623d1c 100644 --- a/src/scrcapture.c +++ b/src/scrcapture.c @@ -49,6 +49,14 @@ static Eina_Bool _scrcapture_capture_postprocess(void* data) } DTIME("end capture postprocess - %s\n", capimginfo->filename); + + char *imgpath = NULL; + imgpath = malloc(strlen(capimginfo->filename)+strlen("file://")+2); + snprintf(imgpath, strlen(capimginfo->filename)+strlen("file://")+1, + "%s%s", "file://", capimginfo->filename); + DTRACE("add to image history = %s\n", imgpath); + clipdrawer_add_image_item(imgpath); + free(imgpath); evas_object_del(capimginfo->eo); free(capimginfo->imgdata); -- 2.7.4