From 72660359d44d8ab3d7029e9cb9bd37e004d0793e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:36:30 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 1 - algorithms/dual-alpha_blending | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 5e43f74..b63f558 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,6 @@ install: libskrift.a libskrift.$(LIBEXT) $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libskrift.$(LIBMINOREXT)" ln -sf -- "libskrift.$(LIBMINOREXT)" "$(DESTDIR)$(PREFIX)/lib/libskrift.$(LIBMAJOREXT)" ln -sf -- "libskrift.$(LIBMAJOREXT)" "$(DESTDIR)$(PREFIX)/lib/libskrift.$(LIBEXT)" - cp -- libskrift.a "$(DESTDIR)$(PREFIX)/lib" cp -- libskrift.h "$(DESTDIR)$(PREFIX)/include" uninstall: diff --git a/algorithms/dual-alpha_blending b/algorithms/dual-alpha_blending index 2c84f65..e7f3019 100644 --- a/algorithms/dual-alpha_blending +++ b/algorithms/dual-alpha_blending @@ -9,7 +9,7 @@ Some variable names: A_fg = the alpha channel in the foreground -The normal alpha blending algorithm is used render +The normal alpha blending algorithm is used to render a translucent object over another translucent object. The alpha blending algorithm is: @@ -36,17 +36,17 @@ variable O). The new alpha blending algorithm This algorithm works as the normal alpha blending algorithm if the opacity is used instead of alpha, -and alpha is set to 1, on the foregrund. This +and alpha is set to 1, on the foreground. This algorithm is identical to the normal alpha blending algorithm except that the opacity replaces the foreground's alpha, and the alpha is treated as any -other colour except all colour colours are still +other colour except that all colours are still premultiplied with it, since it is still an opacity. -However, since libskrift is a text drawing library, -which subpixel rendering support, the opacity is -multiply with the subpixel's value in the glyph, and -they highest subpixel's value for the alpha channel -(since it only support surfaces with per-pixel alpha -and not per-subpixel alpha). +However, since libskrift is a text drawing library +with subpixel rendering support, the opacity is +multiplied with the subpixel's value in the glyph, +and the highest subpixel's value is used for the +alpha channel (since it only supports surfaces +with per-pixel alpha and not per-subpixel alpha). -- cgit v1.2.3-70-g09d2