From 9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 5 May 2018 18:22:00 +0200 Subject: New upstream version 5.1.1 --- app/bin/csnap.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'app/bin/csnap.c') 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)); -- cgit v1.2.3