gr-fosphor: Set default visibility to false
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>
This commit is contained in:
parent
6f3a8de592
commit
defdd4aca6
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue