libdraw: work arround devdraw truncating screenid as 16bit

This commit is contained in:
cinap_lenrek 2014-02-03 03:53:18 +01:00
parent f556fd2437
commit 5fd52f6241

View file

@ -29,7 +29,7 @@ allocscreen(Image *image, Image *fill, int public)
a = bufimage(d, 1+4+4+4+1);
if(a == 0)
break;
id = ++screenid;
id = ++screenid & 0xfffff; /* old devdraw bug */
a[0] = 'A';
BPLONG(a+1, id);
BPLONG(a+5, image->id);