forked from enlightenment/enlightenment
this shoudl make backgrounds faster... i was too paranoid... how about
people just make good background files? :) SVN revision: 5205
This commit is contained in:
parent
6f97fe1bbf
commit
8fc1fc1d22
|
@ -122,8 +122,10 @@ e_background_realize(E_Background *bg, Evas evas)
|
|||
bl->obj = evas_add_image_from_file(bg->evas, bl->file);
|
||||
evas_set_layer(bg->evas, bl->obj, 0);
|
||||
evas_show(bg->evas, bl->obj);
|
||||
#if 0 /* dont need this... do we? */
|
||||
if (evas_get_image_alpha(bg->evas, bl->obj))
|
||||
{
|
||||
printf("Adding rectangle to bg!\n");
|
||||
bg->base_obj = evas_add_rectangle(bg->evas);
|
||||
evas_lower(bg->evas, bg->base_obj);
|
||||
evas_move(bg->evas, bg->base_obj, 0, 0);
|
||||
|
@ -131,6 +133,7 @@ e_background_realize(E_Background *bg, Evas evas)
|
|||
evas_set_color(bg->evas, bg->base_obj, 255, 255, 255, 255);
|
||||
evas_show(bg->evas, bg->base_obj);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else if (bl->type == 1) /* 1 == gradient */
|
||||
{
|
||||
|
|
|
@ -1138,10 +1138,8 @@ e_border_adopt(Window win, int use_client_pos)
|
|||
{
|
||||
E_Border *b;
|
||||
int bw;
|
||||
static int bd_count = 0;
|
||||
|
||||
/* create the struct */
|
||||
printf("new bd %i\n", bd_count++);
|
||||
b = e_border_new();
|
||||
/* set the right event on the client */
|
||||
e_window_set_events(win,
|
||||
|
|
Loading…
Reference in New Issue