Author: jluke
Date: 2005-05-05 23:05:50 -0400 (Thu, 05 May 2005)
New Revision: 44102
Modified:
trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs
trunk/gtk-sharp/sample/GtkDemo/TODO
Log:
manually set it to the PANGO_MATRIX_INIT values
Modified: trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs
===================================================================
--- trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs 2005-05-06 02:49:55 UTC
(rev 44101)
+++ trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs 2005-05-06 03:05:50 UTC
(rev 44102)
@@ -44,7 +44,14 @@
// the centered square where we draw are [-RADIUS,
RADIUS], [-RADIUS, RADIUS]
// We first center, then change the scale
deviceRadius = Math.Min (width, height) / 2;
+ // #define PANGO_MATRIX_INIT { 1., 0., 0., 1., 0., 0. }
Matrix matrix = new Matrix ();
+ matrix.Xx = 1.0;
+ matrix.Xy = 0.0;
+ matrix.Yx = 0.0;
+ matrix.Yy = 1.0;
+ matrix.X0 = 0.0;
+ matrix.Y0 = 0.0;
matrix.Translate (deviceRadius + (width - 2 *
deviceRadius) / 2, deviceRadius + (height - 2 * deviceRadius) / 2);
matrix.Scale (deviceRadius / RADIUS, deviceRadius /
RADIUS);
Modified: trunk/gtk-sharp/sample/GtkDemo/TODO
===================================================================
--- trunk/gtk-sharp/sample/GtkDemo/TODO 2005-05-06 02:49:55 UTC (rev 44101)
+++ trunk/gtk-sharp/sample/GtkDemo/TODO 2005-05-06 03:05:50 UTC (rev 44102)
@@ -6,9 +6,6 @@
DemoMain
- syntax highlighting
-RotatedText
- - doesn't quite work yet
-
IconView
- fix icons
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches