e_output_shutdown();
}
+static Eina_Bool
+_e_comp_screen_fake_output_set(E_Comp_Screen *e_comp_screen)
+{
+ E_Output *output = NULL;
+
+ EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp_screen, EINA_FALSE);
+
+ output = e_output_find_by_index(0);
+
+ if (!e_output_setup(output))
+ {
+ ERR("fail to e_output_setup.");
+ return EINA_FALSE;
+ }
+
+ return EINA_TRUE;
+}
+
static Eina_Bool
_e_comp_screen_init_outputs(E_Comp_Screen *e_comp_screen)
{
int num_outputs;
int i;
Eina_Bool scale_updated = EINA_FALSE;
+ Eina_Bool connection_check = EINA_FALSE;
/* init e_output */
if (!e_output_init())
if (!e_output_connected(output)) continue;
+ connection_check = EINA_TRUE;
+
/* setting with the best mode and enable the output */
mode = e_output_best_mode_find(output);
if (!mode)
//TODO: if there is no output connected, make the fake output which is connected.
+ if (!connection_check)
+ {
+ if (!_e_comp_screen_fake_output_set(e_comp_screen))
+ goto fail;
+ }
return EINA_TRUE;
fail: