labwc/scripts
John Lindgren 45c60de263 common/font: avoid rendering semi-transparent background twice
Fill with the background color first only if the background color is
opaque. This is necessary for subpixel rendering to work properly (it
does not work on top of transparency).

However, if the background color is not opaque, leave the buffer
unfilled (completely transparent) since the background is already
rendered by the scene element underneath. In this case we have to
disable subpixel rendering.

v2: use 0.999 alpha cutoff and fix CodeStyleCheck

Fixes: (the rest of) #1684
2024-04-08 09:55:37 -04:00
..
ci CI: rewrite smoke test and support LABWC_RUNS env var 2024-03-16 18:42:47 +01:00
helper ci: include scripts/find-banned.sh 2023-12-29 11:47:55 +01:00
.gitignore Add scripts/find-banned.sh 2023-07-06 18:04:55 +01:00
check checkpatch: add scripts/check for batch processing 2022-11-03 19:20:23 +00:00
checkpatch.pl common/font: avoid rendering semi-transparent background twice 2024-04-08 09:55:37 -04:00
find-banned.sh Add scripts/find-banned.sh 2023-07-06 18:04:55 +01:00
README.md checkpatch: add scripts/check for batch processing 2022-11-03 19:20:23 +00:00

These scripts are intended to be run from the project top-level directory like this: scripts/foo.sh

  • scripts/check: wrapper to check all files in src/ and include/

  • scripts/checkpatch.pl: Quick hack on the Linux kernel checkpatch.pl to lint C files written according to the labwc coding style. Run like this: ./checkpatch.pl --no-tree --terse --strict --file <file>