mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
video: stb_truetype: simplify expression
Eliminate (x2 - x2) which is always zero. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
41ec127016
commit
348f044fda
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue