Skip to content

Commit

Permalink
Use width from linesize instead of reported width
Browse files Browse the repository at this point in the history
  • Loading branch information
synap5e committed May 23, 2019
1 parent 0ca0cf5 commit aa2af8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screenshot-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ static DWORD CALLBACK write_images_thread(struct screenshot_filter_data *filter)

if (data) {
if (raw)
write_data(destination, data, linesize * height, "image/rgba32", width, height);
write_data(destination, data, linesize * height, "image/rgba32", linesize / 4, height);
else
write_image(destination, data, linesize, width, height);
write_image(destination, data, linesize, linesize / 4, height);
bfree(data);
}
Sleep(200);
Expand Down

0 comments on commit aa2af8d

Please sign in to comment.