[hb-draw] Double sweep gradient subdivision for smoother rendering

Reduce MAX_ANGLE from pi/8 to pi/16, producing ~32 slices per full
circle instead of ~16. This reduces visible color banding in sweep
gradient approximation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 4.6 committed 2026-02-12 15:26:19 -07:00
1 parent 2965686b15
commit 585be5163e
1 file changed
+1 -1
+1 -1
View File
@@ -304,7 +304,7 @@ static const char *composite_mode_str (hb_paint_composite_mode_t mode)
/* ===== Sweep gradient decomposition ===== */
#define MAX_ANGLE (HB_PI / 8.f)
#define MAX_ANGLE (HB_PI / 16.f)
void add_sweep_patch (GString *body,
float cx, float cy, float radius,