FontEngine: Fix warnings (and thus the build) of subpixel rendering code.

This commit is contained in:
Augustin Cavalier
2016-12-17 14:03:13 -05:00
parent 75b90c42e5
commit 7127f7320a
+2 -2
View File
@@ -423,13 +423,13 @@ decompose_ft_bitmap_subpix(const FT_Bitmap& bitmap, int x, int y,
y += bitmap.rows;
pitch = -pitch;
}
for (int i = 0; i < bitmap.rows; i++) {
for (unsigned int i = 0; i < bitmap.rows; i++) {
sl.reset_spans();
if (bitmap.pixel_mode == FT_PIXEL_MODE_MONO) {
// font has built-in mono bitmap
agg::bitset_iterator bits(buf, 0);
for (int j = 0; j < bitmap.width; j++) {
for (unsigned int j = 0; j < bitmap.width; j++) {
if (bits.bit()) {
sl.add_cell(x + j,
agg::cover_full, agg::cover_full, agg::cover_full);