forked from enlightenment/efl
image renderer works withotu needing display info
SVN revision: 3627
This commit is contained in:
parent
895df6c82d
commit
2779c6f133
|
@ -817,10 +817,6 @@ __evas_image_flush_draw(Display *disp, Imlib_Image dstim, Window win)
|
||||||
{
|
{
|
||||||
Evas_List l;
|
Evas_List l;
|
||||||
|
|
||||||
imlib_context_set_display(disp);
|
|
||||||
imlib_context_set_visual(__evas_visual);
|
|
||||||
imlib_context_set_colormap(__evas_cmap);
|
|
||||||
imlib_context_set_drawable(win);
|
|
||||||
imlib_context_set_dither(1);
|
imlib_context_set_dither(1);
|
||||||
imlib_context_set_blend(1);
|
imlib_context_set_blend(1);
|
||||||
|
|
||||||
|
@ -864,7 +860,7 @@ __evas_image_flush_draw(Display *disp, Imlib_Image dstim, Window win)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__evas_image_capable(Display *disp)
|
__evas_image_capable(Display *disp)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -170,9 +170,16 @@ evas_render(Evas e)
|
||||||
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);
|
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;
|
||||||
|
if ((e->current.render_method == RENDER_METHOD_IMAGE) &&
|
||||||
|
(!e->current.image))
|
||||||
|
return;
|
||||||
|
if ((e->current.render_method != RENDER_METHOD_IMAGE) &&
|
||||||
|
((!e->current.display) ||
|
||||||
|
(!e->current.visual) ||
|
||||||
|
(!e->current.colormap) ||
|
||||||
|
(!e->current.drawable)))
|
||||||
|
return;
|
||||||
if ((!e->changed) ||
|
if ((!e->changed) ||
|
||||||
(!e->current.display) ||
|
|
||||||
(!e->current.drawable) ||
|
|
||||||
(e->current.drawable_width <= 0) ||
|
(e->current.drawable_width <= 0) ||
|
||||||
(e->current.drawable_height <= 0) ||
|
(e->current.drawable_height <= 0) ||
|
||||||
(e->current.viewport.w <= 0) ||
|
(e->current.viewport.w <= 0) ||
|
||||||
|
|
Loading…
Reference in New Issue