Skip to content

Commit

Permalink
add missing type arg
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Apr 5, 2024
1 parent f37b209 commit aa50918
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/hyprcursor/hyprcursor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace Hyprcursor {
float hotspotY = 0;
std::string overridenBy = "";
eHyprcursorResizeAlgo resizeAlgo = HC_RESIZE_NONE;
eHyprcursorDataType type = HC_DATA_PNG;
};

/*!
Expand Down Expand Up @@ -126,7 +127,7 @@ namespace Hyprcursor {
return d;
}

SCursorRawShapeData data{.hotspotX = CDATA->hotspotX, .hotspotY = CDATA->hotspotY, .overridenBy = "", .resizeAlgo = CDATA->resizeAlgo};
SCursorRawShapeData data{.hotspotX = CDATA->hotspotX, .hotspotY = CDATA->hotspotY, .overridenBy = "", .resizeAlgo = CDATA->resizeAlgo, .type = CDATA->type};

for (size_t i = 0; i < CDATA->len; ++i) {
SCursorRawShapeImageC* cimage = &CDATA->images[i];
Expand Down
1 change: 1 addition & 0 deletions include/hyprcursor/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ struct SCursorRawShapeDataC {
float hotspotY;
char* overridenBy;
enum eHyprcursorResizeAlgo resizeAlgo;
enum eHyprcursorDataType type;
};

typedef struct SCursorRawShapeDataC hyprcursor_cursor_raw_shape_data;
Expand Down
1 change: 1 addition & 0 deletions libhyprcursor/hyprcursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ SCursorRawShapeDataC* CHyprcursorManager::getRawShapeDataC(const char* shape_) {

data->hotspotX = shape->hotspotX;
data->hotspotY = shape->hotspotY;
data->type = shape->shapeType == SHAPE_PNG ? HC_DATA_PNG : HC_DATA_SVG;
break;
}

Expand Down

0 comments on commit aa50918

Please sign in to comment.