summaryrefslogtreecommitdiff
path: root/src/tikzit.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-04-05 13:20:20 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-04-05 13:20:20 +0200
commit1a71fd8efa0350d1e121f6792e8fad67e82b25c1 (patch)
tree0e706cf35256c5195974105218ad2b6ea49e1193 /src/tikzit.h
parent8b8ea9395bdda4bb1404497ff654b82098084822 (diff)
fixed name conflict, now builds in MSVC
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; }