diff options
author | lecoanet | 2004-03-03 10:16:24 +0000 |
---|---|---|
committer | lecoanet | 2004-03-03 10:16:24 +0000 |
commit | e3bb24569b85ff5fea4dcc3eb10e86ae59608967 (patch) | |
tree | 4a5a104f74812cd7ac1c914c90c5ae51053d767d /generic/Window.c | |
parent | 30852dd99b28fddaef4ac37bfa225da343c6be7e (diff) | |
download | tkzinc-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.c | 5 |
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, |