manually set it to the PANGO_MATRIX_INIT values
svn path=/trunk/gtk-sharp/; revision=44102
This commit is contained in:
parent
91f00222df
commit
642980e0bb
2 changed files with 7 additions and 3 deletions
|
@ -44,7 +44,14 @@ namespace GtkDemo
|
||||||
// the centered square where we draw are [-RADIUS, RADIUS], [-RADIUS, RADIUS]
|
// the centered square where we draw are [-RADIUS, RADIUS], [-RADIUS, RADIUS]
|
||||||
// We first center, then change the scale
|
// We first center, then change the scale
|
||||||
deviceRadius = Math.Min (width, height) / 2;
|
deviceRadius = Math.Min (width, height) / 2;
|
||||||
|
// #define PANGO_MATRIX_INIT { 1., 0., 0., 1., 0., 0. }
|
||||||
Matrix matrix = new Matrix ();
|
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.Translate (deviceRadius + (width - 2 * deviceRadius) / 2, deviceRadius + (height - 2 * deviceRadius) / 2);
|
||||||
matrix.Scale (deviceRadius / RADIUS, deviceRadius / RADIUS);
|
matrix.Scale (deviceRadius / RADIUS, deviceRadius / RADIUS);
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,6 @@ General
|
||||||
DemoMain
|
DemoMain
|
||||||
- syntax highlighting
|
- syntax highlighting
|
||||||
|
|
||||||
RotatedText
|
|
||||||
- doesn't quite work yet
|
|
||||||
|
|
||||||
IconView
|
IconView
|
||||||
- fix icons
|
- fix icons
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue