and return valid info when theres nothngi to do... :)

SVN revision: 3941
This commit is contained in:
Carsten Haitzler 2000-12-02 02:49:51 +00:00
parent 7badc56fdb
commit 1175ab0854
1 changed files with 5 additions and 4 deletions

View File

@ -179,22 +179,22 @@ evas_render_updates(Evas e)
void (*func_gradient_draw) (void *gr, Display *disp, Imlib_Image dstim, Window win, int win_w, int win_h, int x, int y, int w, int h, double angle);
void (*func_poly_draw) (Display *disp, Imlib_Image dstim, Window win, int win_w, int win_h, Evas_List points, int r, int g, int b, int a);
if (!e) return;
if (!e) return NULL;
if ((e->current.render_method == RENDER_METHOD_IMAGE) &&
(!e->current.image))
return;
return NULL;
if ((e->current.render_method != RENDER_METHOD_IMAGE) &&
((!e->current.display) ||
(!e->current.visual) ||
(!e->current.colormap) ||
(!e->current.drawable)))
return;
return NULL;
if ((!e->changed) ||
(e->current.drawable_width <= 0) ||
(e->current.drawable_height <= 0) ||
(e->current.viewport.w <= 0) ||
(e->current.viewport.h <= 0))
return;
return NULL;
switch (e->current.render_method)
{
@ -596,6 +596,7 @@ evas_render_updates(Evas e)
}
func_init(e->current.display, e->current.screen, e->current.colors);
up = NULL;
if (e->updates)
{
_evas_clip_obscures(e);