Reorganize code a little here to remove duplication. No function changes

(and no issues found when tested).



SVN revision: 46184
This commit is contained in:
Christopher Michael 2010-02-15 07:23:58 +00:00
parent 04ca0cb31e
commit 82ce1b5e7b
1 changed files with 12 additions and 23 deletions

View File

@ -340,31 +340,20 @@ _ecore_evas_x_render(Ecore_Evas *ee)
else if (((ee->visible) && (ee->draw_ok)) ||
((ee->should_be_visible) && (ee->prop.fullscreen)) ||
((ee->should_be_visible) && (ee->prop.override)))
{
updates = evas_render_updates(ee->evas);
if (updates)
{
if (ee->shaped)
{
updates = evas_render_updates(ee->evas);
if (updates)
{
ecore_x_window_shape_mask_set(ee->prop.window, ee->engine.x.mask);
evas_render_updates_free(updates);
_ecore_evas_idle_timeout_update(ee);
rend = 1;
}
}
else
{
updates = evas_render_updates(ee->evas);
if (updates)
{
evas_render_updates_free(updates);
if (ee->alpha)
ecore_x_window_shape_input_mask_set(ee->prop.window, ee->engine.x.mask);
evas_render_updates_free(updates);
_ecore_evas_idle_timeout_update(ee);
rend = 1;
}
}
}
else
evas_norender(ee->evas);
if (ee->func.fn_post_render) ee->func.fn_post_render(ee);