video: stb_truetype: simplify expression
PATCH 1/1 video: stb_truetype: simplify expression
Eliminate (x2 - x2) which is always zero.
Signed-off-by Heinrich Schuchardt <[email protected]>
--- drivers/video/stb_truetype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/stb_truetype.h +1 -1
@@ -1993,7 +1993,7 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill,STBTT_assert (fabs (area) <=1.01f ); - scanline[x2] += area + sign * (1 -((x2-x2)+(x_bottom-x2))/2 ) * (sy1-y_crossing); + scanline[x2] += area + sign * (1 -(x_bottom-x2)/2 ) * (sy1-y_crossing); scanline_fill[x2] += sign * (sy1-sy0); }
Signature · 1 line
2.16.2
PATCH 1/1 video: stb_truetype: simplify expression
Quoted 6 lines · On Sun, 18 Mar 2018 14:31:43 +0100 Heinrich Schuchardt xypron.glpk at gmx.de…
Eliminate (x2 - x2) which is always zero.
Signed-off-by Heinrich Schuchardt <[email protected]>--- drivers/video/stb_truetype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-video/master, thanks!
--
Anatolij