Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
1a5eee8c
Commit
1a5eee8c
authored
Aug 31, 2014
by
Ivica Bukvic
Browse files
*tried fixing problem with new draw commands and their displace
parent
0e1a87c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/pd.tk
View file @
1a5eee8c
...
...
@@ -8160,9 +8160,13 @@ proc pdtk_canvas_displace_withtag {w dx dy} {
$
w
move
selected
$
dx
$
dy
foreach
item
[$
w
find
withtag
scalar_selected
]
{
set
matrix
[
lindex
[$
w
itemconfigure
$
item
-
matrix
]
4
]
#
puts
stderr
"A:$matrix"
set
newx
[
expr
{[
lindex
$
matrix
2
0
]
+
$
dx
}]
set
newy
[
expr
{[
lindex
$
matrix
2
1
]
+
$
dy
}]
#
set
newx
[
expr
{[
lindex
$
matrix
2
0
]
+
($
dx
*
[
expr
1.0
-[
lindex
$
matrix
0
0
]])}]
#
set
newy
[
expr
{[
lindex
$
matrix
2
1
]
+
($
dy
*
[
expr
1.0
-[
lindex
$
matrix
1
1
]])}]
set
matrix
[
lreplace
$
matrix
2
2
[
list
$
newx
$
newy
]]
#
puts
stderr
"B:$matrix"
$
w
itemconfigure
$
item
-
matrix
$
matrix
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment