diff options
author | Thomas White <taw@physics.org> | 2020-07-03 16:29:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 2f3670d8fe5fbef48c5d323e617b3e3913708b0e (patch) | |
tree | baffe32081e1c75211f4c7de15269a702d0c2a11 /src/crystfelimageview.c | |
parent | ac7e3f165635c5f9b39ec314b3b0647d11ec1ddb (diff) |
Reset zoom when loading new data
If the image size changes, bad things happen.
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r-- | src/crystfelimageview.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 45a0bf96..8334cb2e 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -807,6 +807,14 @@ int crystfel_image_view_set_image(CrystFELImageView *iv, } +void crystfel_image_view_reset_zoom(CrystFELImageView *iv) +{ + iv->detector_w = 1.0; + iv->detector_h = 1.0; + iv->zoom = -1.0; +} + + void crystfel_image_view_set_brightness(CrystFELImageView *iv, double brightness) { |