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
987b40a4
"README.md" did not exist on "1e84919d0a82a1b889119a32cf7a91f146c70995"
Commit
987b40a4
authored
8 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
fix
#242
: VU base rectangle is drawn too wide and overlaps the scale when placed on a GOP canvas
parent
855a86ad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/g_vumeter.c
+12
-0
12 additions, 0 deletions
pd/src/g_vumeter.c
with
12 additions
and
0 deletions
pd/src/g_vumeter.c
+
12
−
0
View file @
987b40a4
...
...
@@ -137,8 +137,18 @@ static void vu_draw_new(t_vu *x, t_glist *glist)
int
k1
=
x
->
x_led_size
+
1
,
k2
=
IEM_VU_STEPS
+
1
,
k3
=
k1
/
2
;
int
led_col
,
yyy
,
i
,
k4
=
y1
-
k3
;
char
cbuf
[
8
];
/* vumeter is a special case because the base doesn't actually
cover the entire bbox returned by vu_getrect. Instead it is
the bbox minus the width of the scale. That means the call
below is going to draw a base rectangle that is too wide... */
iemgui_base_draw_new
(
&
x
->
x_gui
);
/* ...as a quick and dirty bugfix, we just make another call
and send the correct size */
gui_vmess
(
"gui_vumeter_border_size"
,
"xxii"
,
canvas
,
x
,
x
->
x_gui
.
x_w
+
2
,
x
->
x_gui
.
x_h
+
4
);
for
(
i
=
1
;
i
<=
IEM_VU_STEPS
+
1
;
i
++
)
{
yyy
=
k4
+
k1
*
(
k2
-
i
);
...
...
@@ -186,6 +196,8 @@ static void vu_draw_move(t_vu *x, t_glist *glist)
int
k1
=
x
->
x_led_size
+
1
,
k2
=
IEM_VU_STEPS
+
1
,
k3
=
k1
/
2
;
int
yyy
,
i
,
k4
=
y1
-
k3
;
iemgui_base_draw_move
(
&
x
->
x_gui
);
gui_vmess
(
"gui_vumeter_border_size"
,
"xxii"
,
canvas
,
x
,
x
->
x_gui
.
x_w
+
2
,
x
->
x_gui
.
x_h
+
4
);
for
(
i
=
1
;
i
<=
IEM_VU_STEPS
;
i
++
)
...
...
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