From 642980e0bbed4f47877f25c0bc68ac5675532066 Mon Sep 17 00:00:00 2001 From: John Luke Date: Fri, 6 May 2005 03:05:50 +0000 Subject: [PATCH] manually set it to the PANGO_MATRIX_INIT values svn path=/trunk/gtk-sharp/; revision=44102 --- sample/GtkDemo/DemoRotatedText.cs | 7 +++++++ sample/GtkDemo/TODO | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) 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