[GB.IMAGE]

* BUG: Fix the Image.Clear() method.


git-svn-id: svn://localhost/gambas/trunk@3533 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2011-02-02 21:54:03 +00:00
parent b85bef34d7
commit 175dd81c1b
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@ GB_DESC CImageDesc[] =
GB_PROPERTY_READ("Depth", "i", CIMAGE_depth),
GB_PROPERTY_READ("Data", "p", CIMAGE_data),
GB_METHOD("Clear", "Image", CIMAGE_clear, NULL),
GB_METHOD("Clear", NULL, CIMAGE_clear, NULL),
GB_METHOD("Fill", "Image", CIMAGE_fill, "(Color)i"),
GB_METHOD("Gray", "Image", CIMAGE_gray, NULL),
GB_METHOD("Transparent", "Image", CIMAGE_transparent, "[(Color)i]"),

View file

@ -522,7 +522,7 @@ void IMAGE_take(GB_IMG *img, GB_IMG_OWNER *owner, void *owner_handle, int width,
void IMAGE_delete(GB_IMG *img)
{
IMAGE_take(img, NULL, NULL, 0, 0, NULL);
IMAGE_take(img, &_image_owner, NULL, 0, 0, NULL);
img->format = 0;
}