[GB.IMAGE]
* BUG: The third argument of Image constructor is now ignored if it is -1, so that the old syntax does not create an image with premultiplied alpha. git-svn-id: svn://localhost/gambas/trunk@1809 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
d3ebdea0d6
commit
dd5be3f66b
@ -30,7 +30,7 @@ BEGIN_METHOD(CIMAGE_new, GB_INTEGER w; GB_INTEGER h; GB_INTEGER format; GB_INTEG
|
||||
|
||||
int format = IMAGE_get_default_format();
|
||||
|
||||
if (VARGOPT(format, 0))
|
||||
if (VARGOPT(format, 0) == 1)
|
||||
format = GB_IMAGE_FMT_SET_PREMULTIPLIED(format);
|
||||
|
||||
IMAGE_create(THIS_IMAGE, VARGOPT(w, 0), VARGOPT(h, 0), format);
|
||||
|
Loading…
x
Reference in New Issue
Block a user