Closed N-R-K closed 1 year ago
Try: scrot -o "test.png" -t 10 -e 'echo bytes:$p'
Good catch, thanks! The following diff works:
But maybe the current code is okay too since the imlib_context_set_image
inside imPrintf
isn't redundant. Thinking about closing the PR and keep things as is.
Closing this, having the context set closer to usage is less error prone (even if redundant in some cases).
there's no reason for imPrintf to set imlib2's image context. and it was redundant anyways, in all call sites, the proper image was already in context.
also remove image from scrotExecApp() as well, since it's now unused there too.