Skip to content

Commit

Permalink
Fix _COPYIMAGE/_FREEIMAGE/_MEM(IMAGE) glitch
Browse files Browse the repository at this point in the history
Merge pull request #57 from RhoSigma-QB64/development

Fixes #54
  • Loading branch information
FellippeHeitor committed Jul 28, 2018
2 parents 4ad9738 + 001d461 commit 708e05e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/c/libqb.cpp
Expand Up @@ -18283,6 +18283,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
i2=newimg();
d=&img[i2];
memcpy(d,s,sizeof(img_struct));
img[i2].lock_id=NULL; img[i2].lock_offset=NULL; // force _MEMIMGAGE to get a new lock for the copy
//duplicate pixel data
bytes=d->width*d->height*d->bytes_per_pixel;
d->offset=(uint8*)malloc(bytes);
Expand Down

0 comments on commit 708e05e

Please sign in to comment.