From f2dd4def12ccc1b3e8636aad4d2fcf15ca206bb9 Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Fri, 29 Apr 2022 18:12:10 -0700 Subject: [PATCH] Fix bug in gfx_draw_glyph blend_amap_color_shader now uses the alpha value. --- src/draw.c | 1 + subprojects/libsys4 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index 2d8c816..3edfd85 100644 --- a/src/draw.c +++ b/src/draw.c @@ -798,6 +798,7 @@ void gfx_draw_glyph(Texture *dst, float dx, int dy, Texture *glyph, SDL_Color co data.r = color.r / 255.0; data.g = color.g / 255.0; data.b = color.b / 255.0; + data.a = 1.0; if (bold_width < 0.01) { run_copy_shader(&blend_amap_color_shader.s, dst, glyph, &data); diff --git a/subprojects/libsys4 b/subprojects/libsys4 index 7ca4b3b..1d25247 160000 --- a/subprojects/libsys4 +++ b/subprojects/libsys4 @@ -1 +1 @@ -Subproject commit 7ca4b3bbc760c7bb432b3513205961e1af8f1039 +Subproject commit 1d25247558ad7ff480344118395b5e6902f7c441