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:
Carsten Haitzler 2001-08-18 08:19:37 +00:00
parent 6f97fe1bbf
commit 8fc1fc1d22
2 changed files with 3 additions and 2 deletions

View File

@ -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 */
{

View File

@ -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,