aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-01-19 14:13:38 +0100
committerSylvain Munaut <tnt@246tNt.com>2015-01-19 14:16:25 +0100
commit8c9d6a21526b58ad281a782127dd76808c8dc12f (patch)
tree8e3c36f1a88dda326f131112fb33ac6296752cf4
parent11f27973a948531283fbb42f6dc54bd42032762f (diff)
gr-fosphor: Disable the color scale for the main view when zoomed
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--lib/base_sink_c_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base_sink_c_impl.cc b/lib/base_sink_c_impl.cc
index 035f6e5..bfb672c 100644
--- a/lib/base_sink_c_impl.cc
+++ b/lib/base_sink_c_impl.cc
@@ -241,11 +241,13 @@ base_sink_c_impl::settings_apply(uint32_t settings)
int a = (int)(this->d_width * 0.65f);
this->d_render_main->width = a;
this->d_render_main->options |= FRO_CHANNELS;
+ this->d_render_main->options &= ~FRO_COLOR_SCALE;
this->d_render_zoom->pos_x = a - 10;
this->d_render_zoom->width = this->d_width - a + 10;
} else {
this->d_render_main->width = this->d_width;
this->d_render_main->options &= ~FRO_CHANNELS;
+ this->d_render_main->options |= FRO_COLOR_SCALE;
}
this->d_render_main->height = this->d_height;