From 1cb4381693cdfa6e685a5aa070624dee133071fb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 7 May 2010 05:14:42 -0700 Subject: hdfsee: Shrink circles when binning --- src/render.c | 5 +++-- 1 file 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; -- cgit v1.2.3