mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
Revert "[ft] Fix memory bug in copying bitmaps"
This reverts commita0f556f37f. The change was clearly wrong now that I read. I was probably tricked by what was fixed in the follow-up commite738079302.
This commit is contained in:
parent
5c9fdcb4aa
commit
f88bd92e8b
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue