Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_calc.c 


Log Message:


hrrrrm - aaah this is better!

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- edje_calc.c 24 May 2004 08:02:01 -0000      1.30
+++ edje_calc.c 24 May 2004 08:16:42 -0000      1.31
@@ -380,6 +380,7 @@
        aspect = (double)params->w / (double)params->h;
        if (desc->aspect.prefer == EDJE_ASPECT_PREFER_NONE) /* keep both dimensions in 
check */
          {
+            printf("%s: neither\n", ep->part->name);
             /* adjust for max aspect (width / height) */
             if ((desc->aspect.max > 0.0) && (aspect > desc->aspect.max))
               {
@@ -434,7 +435,10 @@
                    ((params->h - new_h) * desc->align.y);
                  params->h = new_h;
               }
-            params->w = new_w;
+            if (desc->aspect.prefer == EDJE_ASPECT_PREFER_VERTICAL)
+              {
+                 params->w = new_w;
+              }
          }
        else
          {
@@ -450,7 +454,10 @@
                    ((params->w - new_w) * desc->align.x);
                  params->w = new_w;
               }
-            params->h = new_h;
+            if (desc->aspect.prefer == EDJE_ASPECT_PREFER_HORIZONTAL)
+              {
+                 params->h = new_h;
+              }
          }
      }
 #endif




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to