aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-23 09:31:52 +0100
committerThomas White <taw@physics.org>2021-02-23 09:31:52 +0100
commita9d1ecd69c7ca95de3ad21bfc7fc09e99a858415 (patch)
treeb865fc84dd9a903865ccb00113def6c4aa50726f /src
parent81e718365628cd4666801394627e760d0eb1a728 (diff)
CrystFELImageView: Queue a redraw after changing settings
Diffstat (limited to 'src')
-rw-r--r--src/crystfelimageview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c
index ca193c8e..4a925b14 100644
--- a/src/crystfelimageview.c
+++ b/src/crystfelimageview.c
@@ -965,6 +965,7 @@ void crystfel_image_view_set_brightness(CrystFELImageView *iv,
{
iv->brightness = brightness;
iv->need_rerender = 1;
+ redraw(iv);
}
@@ -973,6 +974,7 @@ void crystfel_image_view_set_show_peaks(CrystFELImageView *iv,
{
iv->show_peaks = show_peaks;
iv->need_rerender = 1;
+ redraw(iv);
}
@@ -981,6 +983,7 @@ void crystfel_image_view_set_show_reflections(CrystFELImageView *iv,
{
iv->show_refls = show_refls;
iv->need_rerender = 1;
+ redraw(iv);
}
@@ -989,6 +992,7 @@ void crystfel_image_view_set_label_reflections(CrystFELImageView *iv,
{
iv->label_refls = label_refls;
iv->need_rerender = 1;
+ redraw(iv);
}
@@ -997,6 +1001,7 @@ void crystfel_image_view_set_peak_box_size(CrystFELImageView *iv,
{
iv->peak_box_size = box_size;
iv->need_rerender = 1;
+ redraw(iv);
}
@@ -1005,4 +1010,5 @@ void crystfel_image_view_set_refl_box_size(CrystFELImageView *iv,
{
iv->refl_box_size = box_size;
iv->need_rerender = 1;
+ redraw(iv);
}