summaryrefslogtreecommitdiff
path: root/app/bin/csnap.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 18:22:00 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 18:22:00 +0200
commit9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (patch)
tree10d84c82031aace7ac819f27116a04e7da238d59 /app/bin/csnap.c
parentd1a8285f818eb7e5c3d6a05709ea21a808490b8c (diff)
New upstream version 5.1.1upstream/5.1.1
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));