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
ff011880
Commit
ff011880
authored
May 15, 2015
by
user
Browse files
first shot at getting scalars to work with the ridiculous canvas scaling "feature"
parent
facfe1e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_scalar.c
View file @
ff011880
...
...
@@ -461,7 +461,7 @@ void scalar_drawselectrect(t_scalar *x, t_glist *glist, int state)
glist_xtopixels
(
glist
,
0
);
t_float
yscale
=
glist_ytopixels
(
glist
,
1
)
-
glist_ytopixels
(
glist
,
0
);
post
(
"xsclae is %g and yscale is %g"
,
xscale
,
yscale
);
//sys_vgui(".x%lx.c create prect %d %d %d %d "
// "-strokewidth 1 -stroke $pd_colors(selection) "
// "-tags {select%lx selected}\n",
...
...
@@ -470,7 +470,12 @@ void scalar_drawselectrect(t_scalar *x, t_glist *glist, int state)
gui_vmess
(
"gui_scalar_draw_select_rect"
,
"xsiiiiiff"
,
glist_getcanvas
(
glist
),
tagbuf
,
state
,
x1
,
y1
,
x2
,
y2
,
basex
,
basey
);
(
int
)(
x1
/
xscale
+
0
.
499
),
(
int
)(
y1
/
yscale
+
0
.
499
),
(
int
)(
x2
/
xscale
+
0
.
499
),
(
int
)(
y2
/
yscale
+
0
.
499
),
basex
,
basey
);
}
}
else
...
...
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