1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 12:21:20 +00:00

Change to _PUTIMAGE so _SOURCE can be the same as _DEST without erroring out.

This commit is contained in:
SteveMcNeill 2019-11-27 03:22:07 -05:00
parent 2a56322783
commit c1142e67ce

View file

@ -3449,7 +3449,14 @@ void sub__putimage(double f_dx1,double f_dy1,double f_dx2,double f_dy2,int32 src
if (d->text){error(5); return;}
dbpp=d->bytes_per_pixel;
if ((sbpp==4)&&(dbpp==1)){error(5); return;}
if (s==d){error(5); return;}//cannot put source onto itself!
if (s==d){
//{error(5); return;}//cannot put source onto itself!
int32 temphandle=func__copyimage(dst,NULL,0);
passed=passed|8; //make certain we set the flag TO LET QB64 know we're passing a handle to the temp image
sub__putimage(f_dx1, f_dy1, f_dx2, f_dy2,temphandle, dst, f_sx1, f_sy1, f_sx2, f_sy2, passed);
sub__freeimage(temphandle,1);
return;
}
resolve_coordinates: