Skip to content

Commit

Permalink
core: initialize C shape data fully
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 30, 2024
1 parent 6664842 commit b3e8916
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libhyprcursor/hyprcursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ SCursorRawShapeDataC* CHyprcursorManager::getRawShapeDataC(const char* shape_) {
SCursorRawShapeDataC* data = new SCursorRawShapeDataC;
std::vector<SLoadedCursorImage*> resultingImages;
data->overridenBy = nullptr;
data->images = nullptr;
data->len = 0;
data->hotspotX = 0;
data->hotspotY = 0;
data->resizeAlgo = eHyprcursorResizeAlgo::HC_RESIZE_NONE;
data->type = eHyprcursorDataType::HC_DATA_PNG;

for (auto& shape : impl->theme.shapes) {
// if it's overridden just return the override
Expand Down

0 comments on commit b3e8916

Please sign in to comment.