Skip to content

Commit

Permalink
[BOX32][WRAPPING] Do not convert stream private field of FT_FaceRec s…
Browse files Browse the repository at this point in the history
…tructure
  • Loading branch information
ptitSeb committed Feb 19, 2025
1 parent c4b7937 commit ee3ee53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wrapped32/wrappedfreetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,8 @@ void inplace_FT_FaceRec_shrink(void* a)
dst->charmap = to_ptrv(src->charmap);
dst->driver = to_ptrv(src->driver);
dst->memory = to_ptrv(src->memory);
((FT_StreamDesc_32_t*)src->stream)->value = to_long(src->stream->value);
((FT_StreamDesc_32_t*)src->stream)->pointer = to_ptrv(src->stream->pointer);
//((FT_StreamDesc_32_t*)src->stream)->value = to_long(src->stream->value);
//((FT_StreamDesc_32_t*)src->stream)->pointer = to_ptrv(src->stream->pointer);
dst->stream = to_ptrv(src->stream);
dst->sizes_list.head = to_ptrv(src->sizes_list.head);
dst->sizes_list.tail = to_ptrv(src->sizes_list.tail);
Expand All @@ -1305,8 +1305,8 @@ void inplace_FT_FaceRec_enlarge(void* a)
dst->sizes_list.tail = from_ptrv(src->sizes_list.tail);
dst->sizes_list.head = from_ptrv(src->sizes_list.head);
dst->stream = from_ptrv(src->stream);
dst->stream->pointer = from_ptrv(((FT_StreamDesc_32_t*)dst->stream)->pointer);
dst->stream->value = from_long(((FT_StreamDesc_32_t*)dst->stream)->value);
//dst->stream->pointer = from_ptrv(((FT_StreamDesc_32_t*)dst->stream)->pointer);
//dst->stream->value = from_long(((FT_StreamDesc_32_t*)dst->stream)->value);
dst->memory = from_ptrv(src->memory);
dst->driver = from_ptrv(src->driver);
dst->charmap = from_ptrv(src->charmap);
Expand Down

0 comments on commit ee3ee53

Please sign in to comment.