Skip to content

Commit

Permalink
Don't output images if they are less than 5x5
Browse files Browse the repository at this point in the history
  • Loading branch information
synap5e committed Oct 3, 2019
1 parent 11b824d commit 9bd4051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screenshot-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static DWORD CALLBACK write_images_thread(struct screenshot_filter_data *filter)
}
ReleaseMutex(filter->mutex);

if (data) {
if (data && width > 10 && height > 10) {
if (filter->destination_type != SETTING_DESTINATION_SHMEM_ID) {
if (raw)
write_data(destination, data, linesize * height, "image/rgba32", linesize / 4, height);
Expand Down

0 comments on commit 9bd4051

Please sign in to comment.