aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2016-11-07 15:58:50 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2016-11-07 16:00:46 +0100
commitc6ae6db3cdc2ca73990d7b3e5d2c93e235c763e5 (patch)
tree1d1e1d3f8fa424201f262989bd935383aa2f0bd8
parentf48cd00765a41aa0e3dd3a739866061982b90f04 (diff)
downloadcanvas.lv2-c6ae6db3cdc2ca73990d7b3e5d2c93e235c763e5.zip
canvas.lv2-c6ae6db3cdc2ca73990d7b3e5d2c93e235c763e5.tar.gz
canvas.lv2-c6ae6db3cdc2ca73990d7b3e5d2c93e235c763e5.tar.bz2
canvas.lv2-c6ae6db3cdc2ca73990d7b3e5d2c93e235c763e5.tar.xz
change canvas:Style from argb to rgba.
-rw-r--r--VERSION2
-rw-r--r--canvas.lv2/render.h8
-rw-r--r--test/canvas.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/VERSION b/VERSION
index f95d8a0..b2e22fd 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.319
+0.1.325
diff --git a/canvas.lv2/render.h b/canvas.lv2/render.h
index 6a770d0..df65d97 100644
--- a/canvas.lv2/render.h
+++ b/canvas.lv2/render.h
@@ -149,10 +149,10 @@ _lv2_canvas_render_style(cairo_t *ctx,
if(v)
{
- const float a = (float)((*v >> 24) & 0xff) / 0xff;
- const float r = (float)((*v >> 16) & 0xff) / 0xff;
- const float g = (float)((*v >> 8) & 0xff) / 0xff;
- const float b = (float)((*v >> 0) & 0xff) / 0xff;
+ const float r = (float)((*v >> 24) & 0xff) / 0xff;
+ const float g = (float)((*v >> 16) & 0xff) / 0xff;
+ const float b = (float)((*v >> 8) & 0xff) / 0xff;
+ const float a = (float)((*v >> 0) & 0xff) / 0xff;
cairo_set_source_rgba(ctx, r, g, b, a);
}
diff --git a/test/canvas.c b/test/canvas.c
index ac88468..4087844 100644
--- a/test/canvas.c
+++ b/test/canvas.c
@@ -85,7 +85,7 @@ _unlock(atomic_flag *lock)
static inline LV2_Atom_Forge_Ref
_lv2_logo_forge(LV2_Atom_Forge *forge, LV2_Canvas_URID *urid)
{
- const uint32_t fg = 0xffbb6600;
+ const uint32_t fg = 0xbb6600ff;
LV2_Atom_Forge_Ref ref;
if( (ref = lv2_canvas_forge_beginPath(forge, urid))