diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-05-07 05:14:42 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-05-07 05:14:42 -0700 |
commit | 1cb4381693cdfa6e685a5aa070624dee133071fb (patch) | |
tree | abbf8f8f3a9da2e56b91130e83d86f123fbe41ba /src/render.c | |
parent | d1dcc80ba6d6c5f5c0293adc6cdb05ee10f16327 (diff) |
hdfsee: Shrink circles when binning
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; |