aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-07-09 15:02:10 +0200
committerThomas White <taw@physics.org>2015-07-09 15:02:10 +0200
commitfdf34947dd0524517af6759cf96e54805b657cc2 (patch)
treecfb17d949b58056f2498b566cbb2de76b4639977
parent0382f4fdf3b32612f20aa27e19b4857c64743faf (diff)
hdfsee: Use "dp" for numbers view
-rw-r--r--src/dw-hdfsee.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index a899acc5..2549321c 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -1876,8 +1876,16 @@ static void numbers_update(DisplayWindow *dw)
if ( !invalid ) {
float val;
+ int pn;
+ struct panel *p;
+
+ pn = find_panel_number(dw->image->det, fs, ss);
+ p = &dw->image->det->panels[pn];
+
+ fs -= p->min_fs;
+ ss -= p->min_ss;
- val = dw->image->data[fs+ss*dw->image->width];
+ val = dw->image->dp[pn][fs+ss*p->w];
if ( (val > 0.0) && (log(val)/log(10.0) >= 5) ) {
snprintf(s, 31, "HUGE");