diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-28 22:03:11 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-28 22:03:11 +0200 |
commit | f531476aed448926b6ac0c746b93e6c6c587d16f (patch) | |
tree | 9f36488fddb59d3860846b7aa153f955d9516e2b /demo.c | |
parent | Document alpha blending algorithm (diff) | |
download | libskrift-f531476aed448926b6ac0c746b93e6c6c587d16f.tar.gz libskrift-f531476aed448926b6ac0c746b93e6c6c587d16f.tar.bz2 libskrift-f531476aed448926b6ac0c746b93e6c6c587d16f.tar.xz |
Thread-safety
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ main(void) LIBSKRIFT_CONTEXT *ctx; struct libskrift_image image = {LIBSKRIFT_R8G8B8A8, LIBSKRIFT_HOST_SUBPIXEL, 0, 800, 600, NULL, NULL, NULL}; struct libskrift_rendering rendering = LIBSKRIFT_DEFAULT_RENDERING; - struct libskrift_colour colour = LIBSKRIFT_PREMULTIPLY(1, 1, .80f, .50f, .20f); + struct libskrift_colour colour = LIBSKRIFT_PREMULTIPLY(0.8f, 0.25f, .80f, .50f, .20f); double height; size_t size, i; @@ -42,7 +42,7 @@ main(void) ((uint8_t *)image.image)[i + 0] = 32U; ((uint8_t *)image.image)[i + 1] = 48U; ((uint8_t *)image.image)[i + 2] = 64U; - ((uint8_t *)image.image)[i + 3] = 192U; + ((uint8_t *)image.image)[i + 3] = 250U; } if (libskrift_draw_text(ctx, "hello world", &colour, 0, 300, &image) < 0) { |