Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
backgrounds.c
Log Message:
Fix scaled backgrounds with overlay image and overlay images with alpha.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/backgrounds.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- backgrounds.c 27 Nov 2005 11:02:05 -0000 1.53
+++ backgrounds.c 25 Dec 2005 12:40:38 -0000 1.54
@@ -721,7 +721,7 @@
pmap = draw;
imlib_context_set_drawable(pmap);
- if (hasbg && x == 0 && y == 0 && w == rw && h == rh)
+ if (hasbg && !hasfg && x == 0 && y == 0 && w == rw && h == rh)
{
im = bg->bg.im;
imlib_context_set_image(im);
@@ -770,7 +770,9 @@
ww = imlib_image_get_width();
hh = imlib_image_get_height();
imlib_context_set_image(im);
+ imlib_context_set_blend(1);
imlib_blend_image_onto_image(bg->top.im, 0, 0, 0, ww, hh, x, y, w, h);
+ imlib_context_set_blend(0);
}
imlib_render_image_on_drawable_at_size(0, 0, rw, rh);
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs