diff options
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render.c b/src/render.c index f76e4a14..f88f0b16 100644 --- a/src/render.c +++ b/src/render.c @@ -177,6 +177,7 @@ static void show_marked_features(struct image *image, guchar *data, int w, int h, int binning) { int i; + float r = 10.0/binning; if ( image->features == NULL ) return; @@ -196,8 +197,8 @@ static void show_marked_features(struct image *image, guchar *data, int nx, ny; - nx = x + 10.0*cos(th); - ny = y + 10.0*sin(th); + nx = x + r*cos(th); + ny = y + r*sin(th); if ( nx < 0 ) continue; if ( ny < 0 ) continue; |