diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-03-18 14:31:43 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2018-03-19 09:47:02 +0100 |
commit | 348f044fdabbb94c00a356553d42dfb229f6589d (patch) | |
tree | 8e4da3cd7f1753acc7e20a1f60565c1c1bfb3144 | |
parent | 41ec127016f39c9cec269ff3905ea5de1b09d0b0 (diff) |
video: stb_truetype: simplify expression
Eliminate (x2 - x2) which is always zero.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | drivers/video/stb_truetype.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/stb_truetype.h b/drivers/video/stb_truetype.h index 26e483cf56..5d00bff9fd 100644 --- a/drivers/video/stb_truetype.h +++ b/drivers/video/stb_truetype.h @@ -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); } |