aboutsummaryrefslogtreecommitdiff
path: root/Perl/Zinc
diff options
context:
space:
mode:
authoretienne2003-12-11 10:34:28 +0000
committeretienne2003-12-11 10:34:28 +0000
commit81131ebd8e0322edeb167164d95ae75fe5f2416c (patch)
tree8560773d199f7e73cde0ecb9a62d0ae22258da1f /Perl/Zinc
parent817661dfd59253daf7b6ba00f5a04a9f5ecb6975 (diff)
downloadtkzinc-81131ebd8e0322edeb167164d95ae75fe5f2416c.zip
tkzinc-81131ebd8e0322edeb167164d95ae75fe5f2416c.tar.gz
tkzinc-81131ebd8e0322edeb167164d95ae75fe5f2416c.tar.bz2
tkzinc-81131ebd8e0322edeb167164d95ae75fe5f2416c.tar.xz
Debug use of the new 'device' tag in transform() to get device coordinates.
Diffstat (limited to 'Perl/Zinc')
-rw-r--r--Perl/Zinc/Debug.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Perl/Zinc/Debug.pm b/Perl/Zinc/Debug.pm
index c2433bc..50255b8 100644
--- a/Perl/Zinc/Debug.pm
+++ b/Perl/Zinc/Debug.pm
@@ -1166,7 +1166,7 @@ sub showcoords {
## The first item of the list is not a reference, so the
## list is guarranted to be a flat list (x, y, ...)
## normaly of only one pair of (x y)
- @coords = $zinc->transform($item, 1, [@coords])
+ @coords = $zinc->transform($item, 'device', [@coords])
if $deviceflag;
for (my $j=0; $j < @coords; $j += 2) {
push(@{$contour[$i]}, [$coords[$j], $coords[$j+1]]);
@@ -1177,7 +1177,7 @@ sub showcoords {
## other elements of the list
for (my $j=0; $j < @coords; $j ++) {
my @c = @{$coords[$j]};
- @c = $zinc->transform($item, 1, [@c])
+ @c = $zinc->transform($item, 'device', [@c])
if $deviceflag;
push(@{$contour[$i]}, [@c]);
}
@@ -1359,7 +1359,7 @@ sub showgroupattributes {
# device coords
$fm->Label(-text => 'Device coords', -relief => 'ridge')
->grid(-row => $r, -col => 1, -ipady => 10, -ipadx => 5, -sticky => 'nswe');
- @coords = $zinc->transform($item, 1, [@coords]);
+ @coords = $zinc->transform($item, 'device', [@coords]);
if (@coords == 2) {
my $x0 = int($coords[0]);
my $y0 = int($coords[1]);
@@ -1523,7 +1523,7 @@ sub showattributes {
->grid(-row => $i, -col => 7, -sticky => 'nswe', -ipadx => 5);
}
# device coords
- @coords = $zinc->transform($item, 1, [@coords]);
+ @coords = $zinc->transform($item, 'device', [@coords]);
if (!ref $coords[0]) {
my $x0 = int($coords[0]);
my $y0 = int($coords[1]);