Author: toshok
Date: 2008-01-17 14:24:30 -0500 (Thu, 17 Jan 2008)
New Revision: 93189

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/shape.cpp
   trunk/moon/src/text.cpp
   trunk/moon/src/uielement.cpp
Log:
2008-01-17  Chris Toshok  <[EMAIL PROTECTED]>

        * uielement.cpp (UIElement::InsideClip): use
        uielement_transform_point instead of duplicating it.

        * shape.cpp (Shape::InsideObject): use uielement_transform_point
        instead of duplicating it.

        * text.cpp (TextBlock::InsideObject): use
        uielement_transform_point instead of duplicating it.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-01-17 19:22:02 UTC (rev 93188)
+++ trunk/moon/src/ChangeLog    2008-01-17 19:24:30 UTC (rev 93189)
@@ -1,3 +1,14 @@
+2008-01-17  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * uielement.cpp (UIElement::InsideClip): use
+       uielement_transform_point instead of duplicating it.
+
+       * shape.cpp (Shape::InsideObject): use uielement_transform_point
+       instead of duplicating it.
+
+       * text.cpp (TextBlock::InsideObject): use
+       uielement_transform_point instead of duplicating it.
+
 2008-01-17  Jackson Harper  <[EMAIL PROTECTED]>
 
        * xaml.cpp: After setting a property stop walking up the element

Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp    2008-01-17 19:22:02 UTC (rev 93188)
+++ trunk/moon/src/shape.cpp    2008-01-17 19:24:30 UTC (rev 93189)
@@ -383,11 +383,8 @@
        double nx = x;
        double ny = y;
 
-       cairo_matrix_t inverse = absolute_xform;
-       cairo_matrix_invert (&inverse);
+       uielement_transform_point (this, &nx ,&ny);
 
-       cairo_matrix_transform_point (&inverse, &nx, &ny);
-
        if (cairo_in_stroke (cr, nx, ny) || (CanFill () && cairo_in_fill (cr, 
nx, ny)))
                ret = TRUE;
        

Modified: trunk/moon/src/text.cpp
===================================================================
--- trunk/moon/src/text.cpp     2008-01-17 19:22:02 UTC (rev 93188)
+++ trunk/moon/src/text.cpp     2008-01-17 19:24:30 UTC (rev 93189)
@@ -487,12 +487,9 @@
        
        double nx = x;
        double ny = y;
+
+       uielement_transform_point (this, &nx, &ny);
        
-       cairo_matrix_t inverse = absolute_xform;
-       cairo_matrix_invert (&inverse);
-       
-       cairo_matrix_transform_point (&inverse, &nx, &ny);
-       
        if (nx >= 0.0 && ny >= 0.0 && nx < GetBoundingWidth () && ny < 
GetBoundingHeight ())
                ret = true;
        

Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp        2008-01-17 19:22:02 UTC (rev 93188)
+++ trunk/moon/src/uielement.cpp        2008-01-17 19:24:30 UTC (rev 93189)
@@ -335,11 +335,8 @@
 
        clip->Draw (NULL, cr);
 
-       cairo_matrix_t inverse = absolute_xform;
-       cairo_matrix_invert (&inverse);
+       uielement_transform_point (this, &nx, &ny);
 
-       cairo_matrix_transform_point (&inverse, &nx, &ny);
-
        if (cairo_in_stroke (cr, nx, ny) || (clip->IsFilled () && cairo_in_fill 
(cr, nx, ny)))
                ret = true;
        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to