summaryrefslogtreecommitdiff
path: root/src/tikzit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tikzit.h')
-rw-r--r--src/tikzit.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tikzit.h b/src/tikzit.h
index 5b23083..39aa9e4 100644
--- a/src/tikzit.h
+++ b/src/tikzit.h
@@ -49,9 +49,12 @@
// Number of pixels between (0,0) and (1,0) at 100% zoom level. This should be
// divisible by 8 to avoid rounding errors with e.g. grid-snapping.
-#define GLOBAL_SCALE 80
-#define GLOBAL_SCALEF 80.0f
-#define GLOBAL_SCALEF_INV 0.0125f
+#define GLOBAL_SCALE 40
+#define GLOBAL_SCALEF 40.0f
+#define GLOBAL_SCALEF_INV 0.025f
+#define GRID_N 4
+#define GRID_SEP 10
+#define GRID_SEPF 10.0f
inline QPointF toScreen(QPointF src)
{ src.setY(-src.y()); src *= GLOBAL_SCALEF; return src; }