mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +00:00
Fix error getting metrix internals before prepending transform.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24135 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c1ef529e55
commit
0dbefa37d6
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
||||||
* Source/xlib/XGGState.m:
|
* Source/xlib/XGGState.m:
|
||||||
* Source/x11/XGServerWindow.m:
|
* Source/x11/XGServerWindow.m:
|
||||||
Use accessor method (-transformStruct) to get at affine transform
|
Use accessor method (-transformStruct) to get at affine transform
|
||||||
internals. Make art code closer to coding standars in an attempt
|
internals. Make art code closer to coding standards in an attempt
|
||||||
to improve readability.
|
to improve readability.
|
||||||
|
|
||||||
2006-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
|
2006-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
|
@ -584,12 +584,13 @@ seem to cause edges to be off by a pixel
|
||||||
{
|
{
|
||||||
BOOL identity_transform, is_rgb;
|
BOOL identity_transform, is_rgb;
|
||||||
image_info_t ii;
|
image_info_t ii;
|
||||||
NSAffineTransformStruct ts = [matrix transformStruct];
|
NSAffineTransformStruct ts;
|
||||||
|
|
||||||
if (!wi || !wi->data) return;
|
if (!wi || !wi->data) return;
|
||||||
if (all_clipped) return;
|
if (all_clipped) return;
|
||||||
|
|
||||||
[matrix appendTransform: ctm];
|
[matrix appendTransform: ctm];
|
||||||
|
ts = [matrix transformStruct];
|
||||||
if (fabs(ts.m11 - 1.0) < 0.001 && fabs(ts.m12) < 0.001
|
if (fabs(ts.m11 - 1.0) < 0.001 && fabs(ts.m12) < 0.001
|
||||||
&& fabs(ts.m22 - 1.0) < 0.001 && fabs(ts.m21) < 0.001)
|
&& fabs(ts.m22 - 1.0) < 0.001 && fabs(ts.m21) < 0.001)
|
||||||
identity_transform = YES;
|
identity_transform = YES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue