Author: toshok
Date: 2008-02-06 21:00:08 -0500 (Wed, 06 Feb 2008)
New Revision: 95105

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/frameworkelement.cpp
Log:
2008-02-06  Chris Toshok  <[EMAIL PROTECTED]>

        * frameworkelement.cpp (FrameworkElement::GetSizeForBrush): we
        want the untransformed size of the element.  otherwise we end up
        with a pattern matrix that scales things too large given that
        we're also scaling the element.  Fixes fullscreen mode in halo3
        and /fox video players (bug #335845).



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-02-07 01:08:41 UTC (rev 95104)
+++ trunk/moon/src/ChangeLog    2008-02-07 02:00:08 UTC (rev 95105)
@@ -1,3 +1,11 @@
+2008-02-06  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * frameworkelement.cpp (FrameworkElement::GetSizeForBrush): we
+       want the untransformed size of the element.  otherwise we end up
+       with a pattern matrix that scales things too large given that
+       we're also scaling the element.  Fixes fullscreen mode in halo3
+       and /fox video players (bug #335845).
+
 2008-02-07  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * mplayer.cpp: AdvanceFrame: Create a target_pts range, if we're within 
the

Modified: trunk/moon/src/frameworkelement.cpp
===================================================================
--- trunk/moon/src/frameworkelement.cpp 2008-02-07 01:08:41 UTC (rev 95104)
+++ trunk/moon/src/frameworkelement.cpp 2008-02-07 02:00:08 UTC (rev 95105)
@@ -70,17 +70,8 @@
 void
 FrameworkElement::GetSizeForBrush (cairo_t *cr, double *width, double *height)
 {
-       double x1, x2, y1, y2;
-       
-       x1 = y1 = 0.0;
-       x2 = framework_element_get_width (this);
-       y2 = framework_element_get_height (this);
-
-       cairo_matrix_transform_point (&absolute_xform, &x1, &y1);
-       cairo_matrix_transform_point (&absolute_xform, &x2, &y2);
-
-       *width = x2 - x1;
-       *height = y2 - y1;
+       *width = framework_element_get_width (this);
+       *height = framework_element_get_height (this);;
 }
 
 FrameworkElement *

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

Reply via email to