[smooth] Remove `band_shoot' that never worked. * src/smooth/ftgrays.c (gray_TWorker): Remove `band_shoot'. (gray_convert_glyph): Updated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
diff --git a/ChangeLog b/ChangeLog
index d1d7465..9bcf0ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-06-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Remove `band_shoot' that never worked.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove `band_shoot'.
+ (gray_convert_glyph): Updated.
+
2016-06-17 Alexei Podtelezhnikov <apodtele@gmail.com>
[raster, smooth] Handle FT_RENDER_POOL_SIZE better.
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index fa28d89..a78a122 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -452,7 +452,6 @@ typedef ptrdiff_t FT_PtrDist;
int span_y;
int band_size;
- int band_shoot;
void* buffer;
long buffer_size;
@@ -1920,8 +1919,6 @@ typedef ptrdiff_t FT_PtrDist;
if ( num_bands >= 39 )
num_bands = 39;
- ras.band_shoot = 0;
-
min = ras.min_ey;
max_y = ras.max_ey;
@@ -2003,9 +2000,6 @@ typedef ptrdiff_t FT_PtrDist;
return 1;
}
- if ( bottom-top >= ras.band_size )
- ras.band_shoot++;
-
band[1].min = bottom;
band[1].max = middle;
band[0].min = middle;
@@ -2014,9 +2008,6 @@ typedef ptrdiff_t FT_PtrDist;
} while ( band >= bands );
}
- if ( ras.band_shoot > 8 && ras.band_size > 16 )
- ras.band_size = ras.band_size / 2;
-
return 0;
}