Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sanket Bhukan
purr-data
Commits
1ff5bfa5
Commit
1ff5bfa5
authored
8 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
fix offset for the circle in [bng]
parent
fcef489f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/g_bang.c
+4
-4
4 additions, 4 deletions
pd/src/g_bang.c
with
4 additions
and
4 deletions
pd/src/g_bang.c
+
4
−
4
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment