aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-19 13:53:39 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-19 13:53:39 +0200
commitdf63823a8a8ec6b84576b5bb4da078427ab2a681 (patch)
tree5e9136f01335ab3e7fd113770afa8d221fb788f4 /example
parent8df0c1ae90f2dd6e42f3bf2ade07d0e7f08f3ad1 (diff)
downloadd2tk-df63823a8a8ec6b84576b5bb4da078427ab2a681.tar.xz
core/base: make bitmap surface premultiplied ARGB
Diffstat (limited to 'example')
-rw-r--r--example/example.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/example/example.c b/example/example.c
index 3a87e29..f41c4eb 100644
--- a/example/example.c
+++ b/example/example.c
@@ -219,12 +219,12 @@ _render_c_mix(d2tk_base_t *base, const d2tk_rect_t *rect)
} break;
case 13:
{
- static const uint32_t bmp [4] = {
- 0xff0000ff, 0x00ff001f,
- 0x0000ff7f, 0xffff003f
+ static const uint32_t argb [4] = {
+ 0xffff0000, 0x7f007f00,
+ 0x00000000, 0x3f3f3f00
};
- d2tk_base_bitmap(base, 2, 2, 2*sizeof(uint32_t), bmp, bnd,
+ d2tk_base_bitmap(base, 2, 2, 2*sizeof(uint32_t), argb, bnd,
D2TK_ALIGN_CENTERED);
} break;
default: