mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't colorize the pressure plot when printing
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0f13971869
commit
0d1f8f9a5d
1 changed files with 10 additions and 6 deletions
16
profile.c
16
profile.c
|
@ -622,12 +622,16 @@ static void set_sac_color(struct graphics_context *gc, int sac, int avg_sac)
|
|||
int sac_index = 0;
|
||||
int delta = sac - avg_sac + 7000;
|
||||
|
||||
sac_index = delta / 2000;
|
||||
if (sac_index < 0)
|
||||
sac_index = 0;
|
||||
if (sac_index > SAC_COLORS - 1)
|
||||
sac_index = SAC_COLORS - 1;
|
||||
set_source_rgb_struct(gc, &sac_color[sac_index]);
|
||||
if (!gc->printer) {
|
||||
sac_index = delta / 2000;
|
||||
if (sac_index < 0)
|
||||
sac_index = 0;
|
||||
if (sac_index > SAC_COLORS - 1)
|
||||
sac_index = SAC_COLORS - 1;
|
||||
set_source_rgb_struct(gc, &sac_color[sac_index]);
|
||||
} else {
|
||||
set_source_rgb(gc, 1.0, 1.0, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
/* calculate the current SAC in ml/min and convert to int */
|
||||
|
|
Loading…
Add table
Reference in a new issue