aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-05-31 22:44:20 -0700
committerThomas White <taw@bitwiz.org.uk>2013-05-31 22:44:20 -0700
commitfe4e9e0601df58a743952269ecf57333f7efdc33 (patch)
tree45e86685bbb56e28945f9267a2d8c9deea18d08f /libcrystfel/src
parent26b41f8beafe461f2ab2814402299e35fb6d6952 (diff)
Clear screen before showing new peak box or reference profile
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/integration.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index a1774057..bcffa617 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -297,6 +297,7 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
int q;
initscr();
+ clear();
start_color();
init_pair(1, COLOR_WHITE, COLOR_BLUE) ; /* Background */
init_pair(2, COLOR_WHITE, COLOR_RED); /* Peak */
@@ -348,6 +349,7 @@ static void show_reference_profile(struct intcontext *ic, int i)
int q;
initscr();
+ clear();
start_color();
init_pair(1, COLOR_WHITE, COLOR_BLUE) ; /* Background */
init_pair(2, COLOR_WHITE, COLOR_RED); /* Peak */