lib: round hotspots in getShapes

ref #28
This commit is contained in:
Vaxry 2024-04-08 18:23:14 +01:00
parent af4ce3953d
commit bd56398f19

View file

@ -335,8 +335,8 @@ SCursorImageData** CHyprcursorManager::getShapesC(int& outSize, const char* shap
data[i]->delay = resultingImages[i]->delay;
data[i]->size = resultingImages[i]->side;
data[i]->surface = resultingImages[i]->cairoSurface;
data[i]->hotspotX = hotX * data[i]->size;
data[i]->hotspotY = hotY * data[i]->size;
data[i]->hotspotX = std::round(hotX * (float)data[i]->size);
data[i]->hotspotY = std::round(hotY * (float)data[i]->size);
}
outSize = resultingImages.size();