summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2020-01-31 13:30:38 +0100
committerSylvain Munaut <tnt@246tNt.com>2020-01-31 23:46:54 +0100
commitdefdd4aca6cd157ccc3b10ea16b5b4f552f34b96 (patch)
treef901633e59b6ce832db2388e12ad55480f13417a
parent6f3a8de592e181e9ac2e76800e50df427827ba5b (diff)
gr-fosphor: Set default visibility to falseHEADmaster
We're hidden by default. For Qt we'll get an expose event the first time we're shown. Needed because we might be hidden by default (like in a tab chooser) and this would create problems if we consider ourselves shown by default. And for GLFW we consider ourself visible after the first reshape, which is forced at init. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--lib/base_sink_c_impl.cc2
-rw-r--r--lib/glfw_sink_c_impl.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/base_sink_c_impl.cc b/lib/base_sink_c_impl.cc
index 5347cbb..dd64f85 100644
--- a/lib/base_sink_c_impl.cc
+++ b/lib/base_sink_c_impl.cc
@@ -62,7 +62,7 @@ const int base_sink_c_impl::k_db_per_div[] = {1, 2, 5, 10, 20};
base_sink_c_impl::base_sink_c_impl()
: d_db_ref(0), d_db_per_div_idx(3),
d_zoom_enabled(false), d_zoom_center(0.5), d_zoom_width(0.2),
- d_ratio(0.35f), d_frozen(false), d_active(false), d_visible(true),
+ d_ratio(0.35f), d_frozen(false), d_active(false), d_visible(false),
d_frequency(), d_fft_window(gr::fft::window::WIN_BLACKMAN_hARRIS)
{
/* Init FIFO */
diff --git a/lib/glfw_sink_c_impl.cc b/lib/glfw_sink_c_impl.cc
index f018e5f..955fe9f 100644
--- a/lib/glfw_sink_c_impl.cc
+++ b/lib/glfw_sink_c_impl.cc
@@ -51,6 +51,7 @@ glfw_sink_c_impl::glfw_cb_reshape(int w, int h)
glfwGetFramebufferSize(this->d_window, &w, &h);
this->cb_reshape(w, h);
+ this->cb_visibility(true);
}
void