aboutsummaryrefslogtreecommitdiff
path: root/generic/Window.c
diff options
context:
space:
mode:
authorlecoanet2004-03-03 10:16:24 +0000
committerlecoanet2004-03-03 10:16:24 +0000
commite3bb24569b85ff5fea4dcc3eb10e86ae59608967 (patch)
tree4a5a104f74812cd7ac1c914c90c5ae51053d767d /generic/Window.c
parent30852dd99b28fddaef4ac37bfa225da343c6be7e (diff)
downloadtkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.zip
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.gz
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.bz2
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.xz
Changes to implement a new behavior for -position attribute and local transforms.
Diffstat (limited to 'generic/Window.c')
-rw-r--r--generic/Window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/Window.c b/generic/Window.c
index 011a406..0e29e3e 100644
--- a/generic/Window.c
+++ b/generic/Window.c
@@ -377,7 +377,9 @@ ComputeCoordinates(ZnItem item,
&wind->pos_dev);
}
else {
- ZnTransformPoint(wi->current_transfo, &wind->pos, &wind->pos_dev);
+ ZnPoint pos;
+ pos.x = pos.y = 0.0;
+ ZnTransformPoint(wi->current_transfo, &pos, &wind->pos_dev);
}
ZnAnchor2Origin(&wind->pos_dev, (ZnReal) wind->real_width, (ZnReal) wind->real_height,
@@ -659,6 +661,7 @@ static ZnItemClassStruct WINDOW_ITEM_CLASS = {
True, /* has_anchors */
"window",
wind_attrs,
+ Tk_Offset(WindowItemStruct, pos),
Init,
Clone,
Destroy,