diff options
author | Thomas White <taw@physics.org> | 2015-07-09 15:02:10 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-07-09 15:02:10 +0200 |
commit | fdf34947dd0524517af6759cf96e54805b657cc2 (patch) | |
tree | cfb17d949b58056f2498b566cbb2de76b4639977 | |
parent | 0382f4fdf3b32612f20aa27e19b4857c64743faf (diff) |
hdfsee: Use "dp" for numbers view
-rw-r--r-- | src/dw-hdfsee.c | 10 |
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"); |