diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2019-05-04 08:11:20 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2019-05-04 08:11:20 -0400 |
commit | 81725773800029731617b95cee57cd32a8b46756 (patch) | |
tree | 8da61c1d8e4c2e5f89d2127af759c335a006836a | |
parent | 7b841047207c40b70590ab59c11be898a41504c2 (diff) | |
download | freetype2-81725773800029731617b95cee57cd32a8b46756.tar.gz |
* src/smooth/ftgrays.c (gray_render_line): Small shortcut.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/smooth/ftgrays.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2019-05-04 Alexei Podtelezhnikov <apodtele@gmail.com> + + * src/smooth/ftgrays.c (gray_render_line): Small shortcut. + 2019-05-04 Werner Lemberg <wl@gnu.org> Various clang 8.0 static analyzer fixes. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index e39f00bd7..b09bcceb6 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -856,8 +856,8 @@ typedef ptrdiff_t FT_PtrDist; ; else if ( dy == 0 ) /* ex1 != ex2 */ /* any horizontal line */ { - ex1 = ex2; - gray_set_cell( RAS_VAR_ ex1, ey1 ); + gray_set_cell( RAS_VAR_ ex2, ey2 ); + goto End; } else if ( dx == 0 ) { |