lib: fix missing overrides

ref #27
This commit is contained in:
Vaxry 2024-04-08 11:46:28 +01:00
parent 033416cedc
commit 65507c093f
1 changed files with 3 additions and 1 deletions

View File

@ -653,6 +653,8 @@ std::optional<std::string> CHyprcursorImplementation::loadTheme() {
SHAPE->images.push_back(SCursorImage{i.file, i.size, i.delayMs});
}
SHAPE->overrides = meta.parsedData.overrides;
for (auto& i : SHAPE->images) {
if (SHAPE->shapeType == SHAPE_INVALID) {
if (i.filename.ends_with(".svg"))
@ -695,7 +697,7 @@ std::optional<std::string> CHyprcursorImplementation::loadTheme() {
IMAGE->cairoSurface = cairo_image_surface_create_from_png_stream(::readPNG, IMAGE);
if (const auto STATUS = cairo_surface_status(IMAGE->cairoSurface); STATUS != CAIRO_STATUS_SUCCESS) {
delete[] (char*)IMAGE->data;
delete[](char*) IMAGE->data;
IMAGE->data = nullptr;
return "Failed reading cairoSurface, status " + std::to_string((int)STATUS);
}