diff --git a/sample/GtkDemo/DemoRotatedText.cs b/sample/GtkDemo/DemoRotatedText.cs index f18ad6ba1..cdef02de4 100644 --- a/sample/GtkDemo/DemoRotatedText.cs +++ b/sample/GtkDemo/DemoRotatedText.cs @@ -44,7 +44,14 @@ namespace GtkDemo // 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); diff --git a/sample/GtkDemo/TODO b/sample/GtkDemo/TODO index 84edb14c9..20075078a 100644 --- a/sample/GtkDemo/TODO +++ b/sample/GtkDemo/TODO @@ -6,9 +6,6 @@ General DemoMain - syntax highlighting -RotatedText - - doesn't quite work yet - IconView - fix icons