Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        iclass.c 


Log Message:
Force stretching (no tiling) if transparent (should be fixed some day).
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/iclass.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- iclass.c    31 Mar 2004 19:16:18 -0000      1.30
+++ iclass.c    4 Apr 2004 21:29:49 -0000       1.31
@@ -386,7 +386,7 @@
 ImageStateMakePmapMask(ImageState * is, Drawable win, PmapMask * pmm,
                       int make_mask, int w, int h)
 {
-   int                 apply;
+   int                 apply, trans;
    int                 ww, hh;
    PmapMask            pmml;
    Pixmap              mask = 0;
@@ -419,10 +419,12 @@
    pmm->type = 1;
    pmm->pmap = pmm->mask = 0;
 
+   trans = (Conf.theme.transparency ||
+           (is->transparent && is->pixmapfillstyle == FILL_STRETCH &&
+            imlib_image_has_alpha()));
+
 #ifdef ENABLE_TRANSPARENCY
-   if (Conf.theme.transparency ||
-       (is->transparent && is->pixmapfillstyle == FILL_STRETCH &&
-       imlib_image_has_alpha()))
+   if (trans)
      {
        Window              cr;
        Pixmap              bg;
@@ -450,7 +452,7 @@
      }
 #endif
 
-   if (is->pixmapfillstyle == FILL_STRETCH)
+   if (is->pixmapfillstyle == FILL_STRETCH || trans)
      {
 #ifdef ENABLE_TRANSPARENCY
        if (ii)
@@ -518,7 +520,7 @@
    if (apply)
      {
        /* Rendering on drawable */
-       if (is->pixmapfillstyle == FILL_STRETCH)
+       if (is->pixmapfillstyle == FILL_STRETCH || trans)
          {
             if (pmm->pmap)
               {
@@ -543,7 +545,7 @@
    else
      {
        /* Making pmap/mask */
-       if (is->pixmapfillstyle == FILL_STRETCH)
+       if (is->pixmapfillstyle == FILL_STRETCH || trans)
          {
             /* pmap and mask are already rendered at the correct size */
          }




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to