projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcb822c
)
Fix long-standing bug in spacer expose+render.
author
Ben Loftis
<ben@harrisonconsoles.com>
Sat, 17 Feb 2018 22:46:04 +0000
(16:46 -0600)
committer
Ben Loftis
<ben@harrisonconsoles.com>
Sat, 17 Feb 2018 22:46:04 +0000
(16:46 -0600)
libs/widgets/widgets/ardour_spacer.h
patch
|
blob
|
history
diff --git
a/libs/widgets/widgets/ardour_spacer.h
b/libs/widgets/widgets/ardour_spacer.h
index 520ad670af5ea6b798a3d7db1e2dc2c665d58dd2..b2668f19d73306561a835b69ba566225b5995799 100644
(file)
--- a/
libs/widgets/widgets/ardour_spacer.h
+++ b/
libs/widgets/widgets/ardour_spacer.h
@@
-31,9
+31,12
@@
public:
ArdourVSpacer (float r = 0.75f);
protected:
- void render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t* r) {
- float h = r->height * ratio;
- float t = .5f * (r->height - h);
+ void render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t*) {
+
+ float height = get_height();
+
+ float h = height * ratio;
+ float t = .5f * (height - h);
ctx->rectangle (0, t, 1, h);
ctx->set_source_rgb (0, 0, 0);
ctx->fill ();