mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
examples: screencopy-dmabuf: Fix y-inversion
This commit is contained in:
parent
1d835f2035
commit
a54ed85881
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
write_image("wayland-screenshot.png", buffer.format, buffer.width,
|
write_image("wayland-screenshot.png", buffer.format, buffer.width,
|
||||||
buffer.height, stride, !buffer.y_invert, data);
|
buffer.height, stride, buffer.y_invert, data);
|
||||||
|
|
||||||
gbm_bo_unmap(buffer.bo, map_data);
|
gbm_bo_unmap(buffer.bo, map_data);
|
||||||
gbm_bo_destroy(buffer.bo);
|
gbm_bo_destroy(buffer.bo);
|
||||||
|
|
Loading…
Reference in a new issue