HiDPI: Change Sketcher crosshair hot spot xy

See https://forum.freecadweb.org/viewtopic.php?p=432021#p432021
This commit is contained in:
Vanuan
2020-09-20 23:28:05 +03:00
committed by wwmayer
parent 2de44b123b
commit 8ea1a38849

View File

@@ -97,7 +97,10 @@ void DrawSketchHandler::setCrosshairCursor(const char* svgName) {
unsigned long color = getCrosshairColor();
auto colorMapping = std::map<unsigned long, unsigned long>();
colorMapping[defaultCrosshairColor] = color;
setSvgCursor(cursorName, 7, 7, colorMapping);
// hot spot of all SVG icons should be 8,8 for 32x32 size (16x16 for 64x64)
int hotX = 8;
int hotY = 8;
setSvgCursor(cursorName, hotX, hotY, colorMapping);
}
void DrawSketchHandler::setSvgCursor(const QString & cursorName, int x, int y, const std::map<unsigned long, unsigned long>& colorMapping)