Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/estyle

Dir     : e17/libs/estyle/src


Modified Files:
        estyle.c estyle_style.c estyle_style.h 


Log Message:
Added a soft shadow style to match edje more closely.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/estyle/src/estyle.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- estyle.c    28 Jan 2004 05:06:30 -0000      1.33
+++ estyle.c    28 Feb 2004 06:22:39 -0000      1.34
@@ -247,6 +247,8 @@
 {
        Estyle * es;
 
+       CHECK_PARAM_POINTER("obj", obj);
+
        es = evas_object_smart_data_get(obj);
 
        es->color = _estyle_color_instance(r, g, b, a);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/estyle/src/estyle_style.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- estyle_style.c      28 Jan 2004 05:06:30 -0000      1.14
+++ estyle_style.c      28 Feb 2004 06:22:39 -0000      1.15
@@ -381,9 +381,9 @@
        while (ptr_list &&
                (layer = _estyle_heap_item(info->layers, i++)) != NULL &&
                (sob = ptr_list->data) != NULL) {
+                       int r, g, b, a;
 
                if (layer->relative_color) {
-                       int r, g, b, a;
 
                        r = SET_REL_COLOR(es->color->r, layer->r);
                        g = SET_REL_COLOR(es->color->g, layer->g);
@@ -643,6 +643,9 @@
                a = layer->a;
        }
 
+       if (layer->blend_alpha)
+               a = (layer->blend_alpha * (a + 1)) / 256;
+
        evas_object_color_set(ret, r, g, b, a);
 
        return ret;
@@ -747,6 +750,9 @@
                sprintf(key, "/layers/%d/relative_color", i);
                e_db_int_get(info->style_db, key, &layer->relative_color);
 
+               sprintf(key, "/layers/%d/blend_alpha", i);
+               e_db_int_get(info->style_db, key, &layer->blend_alpha);
+
                sprintf(key, "/layers/%d/color/a", i);
                e_db_int_get(info->style_db, key, &layer->a);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/estyle/src/estyle_style.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- estyle_style.h      18 Oct 2003 16:22:46 -0000      1.9
+++ estyle_style.h      28 Feb 2004 06:22:39 -0000      1.10
@@ -14,6 +14,7 @@
 
        int a, r, g, b;
        int relative_color;
+       int blend_alpha;
 };
 
 /*




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to