Blender Git Loki

Git Commits -> Revision 6944521

Revision 6944521 by Richard Antalik (master)
April 22, 2021, 06:16 (GMT)
Fix T87337: Text strip draws white outline

Math for drawing font over byte buffer was incorrect. Effect can be seen
when target buffer is fully black and transparent - this results in font
color being effectively premultiplied, which causes problems when image
is composited further.

Use `blend_color_mix_byte()` and `blend_color_mix_float()` for blending.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D11035

Commit Details:

Full Hash: 6944521d7e3711e6f055e12427aec9d3618979ec
Parent Commit: 4554f27
Lines Changed: +13, -25

1 Modified Path:

/source/blender/blenfont/intern/blf_font.c (+13, -25) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021