Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
1ff5bfa5
Commit
1ff5bfa5
authored
Aug 01, 2016
by
Jonathan Wilkes
Browse files
fix offset for the circle in [bng]
parent
fcef489f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_bang.c
View file @
1ff5bfa5
...
...
@@ -42,8 +42,8 @@ void bng_draw_new(t_bng *x, t_glist *glist)
int
y1
=
text_ypix
(
&
x
->
x_gui
.
x_obj
,
glist
);
iemgui_base_draw_new
(
&
x
->
x_gui
);
t_float
cr
=
(
x
->
x_gui
.
x_w
-
2
)
/
2
.
0
;
t_float
cx
=
x1
+
cr
+
1
.
5
;
t_float
cy
=
y1
+
cr
+
1
.
5
;
t_float
cx
=
x1
+
cr
+
1
;
t_float
cy
=
y1
+
cr
+
1
;
/* The circle isn't quite centered in the nw.js port. Let's use the
old interface to see if there's anything we're doing wrong. Then once
we get the circle placement right we can remove the old code here... */
...
...
@@ -69,8 +69,8 @@ void bng_draw_move(t_bng *x, t_glist *glist)
iemgui_base_draw_move
(
&
x
->
x_gui
);
t_float
cr
=
(
x
->
x_gui
.
x_w
-
2
)
/
2
.
0
;
t_float
cx
=
x1
+
cr
+
1
.
5
;
t_float
cy
=
y1
+
cr
+
1
.
5
;
t_float
cx
=
x1
+
cr
+
1
;
t_float
cy
=
y1
+
cr
+
1
;
gui_vmess
(
"gui_bng_configure"
,
"xxxfff"
,
canvas
,
x
,
...
...
Write
Preview
Supports
Markdown
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