Revert "[ft] Fix memory bug in copying bitmaps"

This reverts commit a0f556f37f.

The change was clearly wrong now that I read.  I was probably
tricked by what was fixed in the follow-up commit
e738079302.
This commit is contained in:
Behdad Esfahbod 2014-03-05 01:13:59 -08:00
parent 5c9fdcb4aa
commit f88bd92e8b

View file

@ -1161,7 +1161,9 @@ _get_bitmap_surface (FT_Bitmap *bitmap,
source = bitmap->buffer;
dest = data;
for (i = height; i; i--) {
memcpy (dest, source, stride);
memcpy (dest, source, bitmap->pitch);
memset (dest + bitmap->pitch, '\0', stride - bitmap->pitch);
source += bitmap->pitch;
dest += stride;
}