From 175dd81c1b0302f594e751c81af079fe912046bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 2 Feb 2011 21:54:03 +0000 Subject: [PATCH] [GB.IMAGE] * BUG: Fix the Image.Clear() method. git-svn-id: svn://localhost/gambas/trunk@3533 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/lib/image/CImage.c | 2 +- main/lib/image/image.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/lib/image/CImage.c b/main/lib/image/CImage.c index 2a61dc229..f5be796e0 100644 --- a/main/lib/image/CImage.c +++ b/main/lib/image/CImage.c @@ -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]"), diff --git a/main/lib/image/image.c b/main/lib/image/image.c index 81663de2c..0ea686ac9 100644 --- a/main/lib/image/image.c +++ b/main/lib/image/image.c @@ -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; }