Author: spouliot
Date: 2007-09-20 15:13:41 -0400 (Thu, 20 Sep 2007)
New Revision: 86101

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/brush.cpp
Log:
brush.cpp: Implemented MappingMode for LinearGradientBrush. Buttons from Dr 
Popper are now rendered correctly.

Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-09-20 18:55:50 UTC (rev 86100)
+++ trunk/moon/src/ChangeLog    2007-09-20 19:13:41 UTC (rev 86101)
@@ -1,3 +1,8 @@
+2007-09-20  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * brush.cpp: Implemented MappingMode for LinearGradientBrush.
+       Buttons from Dr Popper are now rendered correctly.
+
 2007-09-20  Chris Toshok  <[EMAIL PROTECTED]>
 
        * typegen.cs (GenerateTypeCpp): add a call to

Modified: trunk/moon/src/brush.cpp
===================================================================
--- trunk/moon/src/brush.cpp    2007-09-20 18:55:50 UTC (rev 86100)
+++ trunk/moon/src/brush.cpp    2007-09-20 19:13:41 UTC (rev 86101)
@@ -380,10 +380,9 @@
        cairo_matrix_t matrix;
        switch (gradient_brush_get_mapping_mode (this)) {
        case BrushMappingModeAbsolute:
-               cairo_matrix_init_identity (&matrix);
+               cairo_matrix_init (&matrix, 1.0 / w, 0, 0, 1.0 / h, 0, 0);
                break;
        case BrushMappingModeRelativeToBoundingBox:
-               // FIXME - need test case
                cairo_matrix_init_identity (&matrix);
                break;
        }

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

Reply via email to