diff options
author | Thomas White <taw@physics.org> | 2021-02-23 15:04:20 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-23 15:10:43 +0100 |
commit | 05f06f5e8dd990f63aa28edc5517040fe953d646 (patch) | |
tree | 95fec15b45b45ef352f52fbce1395a0c8a69e20a /src | |
parent | 7f33f614b30a7d3526f48398048607e79f0d7bc0 (diff) |
CrystFELImageView: Redraw even less
Diffstat (limited to 'src')
-rw-r--r-- | src/crystfelimageview.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 0d1cd519..795d628c 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -969,7 +969,9 @@ int crystfel_image_view_set_image(CrystFELImageView *iv, { cleanup_image(iv); iv->image = image; - return rerender_image(iv); + iv->need_rerender = 1; + redraw(iv); + return 0; } @@ -978,6 +980,8 @@ void crystfel_image_view_reset_zoom(CrystFELImageView *iv) iv->detector_w = 1.0; iv->detector_h = 1.0; iv->zoom = -1.0; + iv->need_rerender = 1; + redraw(iv); } |