mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2026-02-04 04:50:28 +01:00
image: fix missing svg byte stream
This commit is contained in:
parent
6cfc891808
commit
790adab7eb
1 changed files with 1 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ Hyprgraphics::CImage::CImage(std::span<const uint8_t> data, eImageFormat format,
|
|||
#else
|
||||
case IMAGE_FORMAT_AVIF: lastError = "hyprgraphics compiled without HEIF support"; return;
|
||||
#endif
|
||||
case IMAGE_FORMAT_SVG: CAIROSURFACE = SVG::createSurfaceFromData(data, size); break;
|
||||
default: lastError = "Currently only PNG and AVIF images are supported for embedding"; return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue