Right now we clear is_shown after calling hide_splash in a couple
of places. It makes more sense to clear this flag in one place,
in hide_splash, rather than duplicating code.
static void
hide_splash (state_t *state)
{
+ state->is_shown = false;
+
if (state->boot_splash == NULL)
return;
ply_device_manager_deactivate_renderers (state->device_manager);
hide_splash (state);
-
- state->is_shown = false;
-
quit_splash (state);
}
ply_trace ("hiding splash");
ply_device_manager_deactivate_renderers (state->device_manager);
hide_splash (state);
-
- state->is_shown = false;
}
ply_trace ("quitting splash");