summaryrefslogtreecommitdiff
path: root/app/bin/csnap.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 19:24:29 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 19:24:29 +0200
commit81184b836a6ddbeaca5f85781a052cb36424e37f (patch)
tree1965bd34b4e351e5148a1412e618555b72330117 /app/bin/csnap.c
parent67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff)
parentc1f7a0251136f6327d14a85eb5a761489551b668 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'app/bin/csnap.c')
-rw-r--r--app/bin/csnap.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/bin/csnap.c b/app/bin/csnap.c
index 0f0f353..4c4d948 100644
--- a/app/bin/csnap.c
+++ b/app/bin/csnap.c
@@ -30,6 +30,8 @@
#include "track.h"
#include "utility.h"
+#define bigdot_width 3
+
/*****************************************************************************
*
@@ -44,9 +46,6 @@ EXPORT long minGridSpacing = 3;
static wDrawBitMap_p cross0_bm;
#endif
-#include "bitmaps/bigdot.xbm"
-static wDrawBitMap_p bigdot_bm;
-
#define DEFAULTGRIDSPACING (1.0)
EXPORT void MapGrid(
@@ -129,7 +128,7 @@ void static DrawGridPoint(
x0 = (wPos_t)(p0.x*dpi+0.5) + lborder;
y0 = (wPos_t)(p0.y*dpi+0.5) + bborder;
if ( bigdot )
- wDrawBitMap( D->d, bigdot_bm, x0, y0, Color, (wDrawOpts)D->funcs->options );
+ wDrawFilledCircle(D->d, x0, y0, (wPos_t)(bigdot_width+0.5)/2, Color, (wDrawOpts)D->funcs->options );
else
wDrawPoint( D->d, x0, y0, Color, (wDrawOpts)D->funcs->options );
}
@@ -209,9 +208,7 @@ EXPORT void DrawGrid(
if (!cross0_bm)
cross0_bm = wDrawBitMapCreate( mainD.d, cross0_width, cross0_height, 2, 2, cross0_bits );
#endif
- if (!bigdot_bm)
- bigdot_bm = wDrawBitMapCreate( mainD.d, bigdot_width, bigdot_height, 1, 1, bigdot_bits );
-
+
wSetCursor( wCursorWait );
dpi = D->dpi/D->scale;
Gdx = cos(D2R(Gangle));