replace range with horizontalRange and verticalRange

This commit is contained in:
elviosak 2025-11-29 08:01:46 -03:00
parent 35b3980a5b
commit f89c31c2de
5 changed files with 26 additions and 16 deletions

View file

@ -1177,7 +1177,12 @@ entry(xmlNode *node, char *nodename, char *content)
} else if (!strcasecmp(nodename, "unMaximizeThreshold.resistance")) {
rc.unmaximize_threshold = atoi(content);
} else if (!strcasecmp(nodename, "range.snapping")) {
rc.snap_edge_range = atoi(content);
rc.snap_edge_horizontal_range = atoi(content);
rc.snap_edge_vertical_range = atoi(content);
} else if (!strcasecmp(nodename, "horizontalRange.snapping")) {
rc.snap_edge_horizontal_range = atoi(content);
} else if (!strcasecmp(nodename, "verticalRange.snapping")) {
rc.snap_edge_vertical_range = atoi(content);
} else if (!strcasecmp(nodename, "cornerRange.snapping")) {
rc.snap_edge_corner_range = atoi(content);
} else if (!strcasecmp(nodename, "enabled.overlay.snapping")) {
@ -1456,7 +1461,8 @@ rcxml_init(void)
rc.unsnap_threshold = 20;
rc.unmaximize_threshold = 150;
rc.snap_edge_range = 10;
rc.snap_edge_horizontal_range = 10;
rc.snap_edge_vertical_range = 10;
rc.snap_edge_corner_range = 50;
rc.snap_overlay_enabled = true;
rc.snap_overlay_delay_inner = 500;