Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display: Return error status from display::screenshot() instead of fi…
…le size This makes it so errors in image::save_image() are printed to stderr using our log facilities before returning, and also propagates the function's result to screenshot()'s callers instead of a computed screenshot size that doesn't hold true for PNG images. Additionally, a couple of existing error messages have been reworded and are now emitted through the log facilities instead of being sent directly to stderr.
- Loading branch information
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters