mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2026-05-08 14:48:03 +02:00
images/png: mark surface dirty after copy
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
fixes #22
This commit is contained in:
parent
80b754e38e
commit
c7225d7375
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ std::expected<cairo_surface_t*, std::string> PNG::createSurfaceFromPNG(const std
|
|||
return std::unexpected("loading png: cairo failed");
|
||||
|
||||
memcpy(cairo_image_surface_get_data(CAIROSURFACE), rawData.data(), rawData.size());
|
||||
cairo_surface_mark_dirty(CAIROSURFACE);
|
||||
|
||||
return CAIROSURFACE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue