forked from enlightenment/efl
ecore evas x - on argb dont create unused 1 bit pixmap masks
found out we had a wasted 1 bit pixmap mask for argb windows left over from shaped window support... so don't create it. drop resources a bit. @fix
This commit is contained in:
parent
69d6ca28ab
commit
60f8495d80
|
@ -785,7 +785,12 @@ _resize_shape_do(Ecore_Evas *ee)
|
||||||
|
|
||||||
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
|
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
|
||||||
|
|
||||||
if (edata->mask) ecore_x_pixmap_free(edata->mask);
|
if (edata->mask)
|
||||||
|
{
|
||||||
|
ecore_x_pixmap_free(edata->mask);
|
||||||
|
edata->mask = 0;
|
||||||
|
}
|
||||||
|
if (!ee->shaped) return;
|
||||||
edata->mask = ecore_x_pixmap_new(ee->prop.window, ee->w + fw, ee->h + fh, 1);
|
edata->mask = ecore_x_pixmap_new(ee->prop.window, ee->w + fw, ee->h + fh, 1);
|
||||||
foreground = 0;
|
foreground = 0;
|
||||||
gc = ecore_x_gc_new(edata->mask,
|
gc = ecore_x_gc_new(edata->mask,
|
||||||
|
|
Loading…
Reference in New Issue