1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 08:50:25 +00:00

Add files via upload

This commit is contained in:
RhoSigma-QB64 2018-07-28 18:32:56 +02:00 committed by GitHub
parent 4ad9738b4d
commit 001d461b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);