}
eina_mmap_safety_enabled_set(EINA_TRUE);
-
+
info->map = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, info->fd, 0);
if (info->map == MAP_FAILED)
{
* output to the file specified by the file option (and then exit). If no
* delay is given, the default is 0.5 seconds. If no file is given the
* default output file is "out.png". Repeat option is for continous
- * capturing screenshots. Repeat range is from 1 to 999 and
+ * capturing screenshots. Repeat range is from 1 to 999 and
* filename is fixed to "out001.png"
* Some examples of using the shot engine:
*
{
repname = malloc(sizeof(char)*(strlen(tmp) + 16));
strncpy(repname, tmp, dotptr - tmp);
- sprintf(repname + (dotptr - tmp), "%03i",
+ sprintf(repname + (dotptr - tmp), "%03i",
win->shot.shot_counter + 1);
strcat(repname, dotptr);
return repname;
}
free(tmp);
if (!win->shot.repeat_count) return strdup("out.png");
- else
+ else
{
repname = malloc(sizeof(char) * 24);
sprintf(repname, "out%03i.png", win->shot.shot_counter + 1);
{
int remainshot = (win->shot.repeat_count - win->shot.shot_counter);
if (remainshot > 0) return EINA_TRUE;
- }
+ }
win->shot.timer = NULL;
elm_exit();
return EINA_FALSE;