mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-11-17 00:25:57 +01:00
internal: use newBuf data for storage of the bitmap
This commit is contained in:
parent
03bc27be94
commit
5ba3268694
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ void Events::handleSCReady(void* lsdata, struct zwlr_screencopy_frame_v1* frame,
|
||||||
|
|
||||||
cairo_surface_flush(oldSurface);
|
cairo_surface_flush(oldSurface);
|
||||||
|
|
||||||
newBuf.surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, transformedSize.x, transformedSize.y);
|
newBuf.surface = cairo_image_surface_create_for_data((unsigned char*)newBuf.data, CAIRO_FORMAT_ARGB32, transformedSize.x, transformedSize.y, transformedSize.x * 4);
|
||||||
|
|
||||||
const auto PCAIRO = cairo_create(newBuf.surface);
|
const auto PCAIRO = cairo_create(newBuf.surface);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue