summaryrefslogtreecommitdiff
path: root/app/bin/csnap.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-10 23:05:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-10 23:05:17 +0200
commitc120c7bcbcf115ecc2a6668f4c7f45b3d4a5bc86 (patch)
tree5550610553d1b1d7236d052b6e956b22e0bb4883 /app/bin/csnap.c
parent67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff)
parent26d299964db18cb71c2c6a5be4864479ba82d54f (diff)
Merge branch 'release/debian/5.1.1-1'debian/5.1.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));