From 7034881b87b53b087bae78aef8380e5258f68a24 Mon Sep 17 00:00:00 2001 From: Jeremy Henty Date: Thu, 7 May 2009 16:35:03 -0400 Subject: Cleanup in a_Image_new() signature --- src/dicache.c | 2 +- src/html.cc | 2 +- src/image.cc | 5 +---- src/image.hh | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/dicache.c b/src/dicache.c index 2a86810a..6ffa6559 100644 --- a/src/dicache.c +++ b/src/dicache.c @@ -398,7 +398,7 @@ static void *Dicache_image(int ImgType, const char *MimeType, void *Ptr, dReturn_val_if_fail(MimeType && Ptr, NULL); if (!web->Image) - web->Image = a_Image_new(0, 0, NULL, web->bgColor); + web->Image = a_Image_new(NULL, web->bgColor); /* Add an extra reference to the Image (for dicache usage) */ a_Image_ref(web->Image); diff --git a/src/html.cc b/src/html.cc index ea178277..413d6f1b 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2064,7 +2064,7 @@ DilloImage *a_Html_image_new(DilloHtml *html, const char *tag, html->styleEngine->setNonCssHints(&props); /* Add a new image widget to this page */ - Image = a_Image_new(0, 0, alt_ptr, 0); + Image = a_Image_new(alt_ptr, 0); if (DW2TB(html->dw)->getBgColor()) Image->bg_color = DW2TB(html->dw)->getBgColor()->getColor(); diff --git a/src/image.cc b/src/image.cc index 8ecf2a72..3417ed9d 100644 --- a/src/image.cc +++ b/src/image.cc @@ -33,10 +33,7 @@ using namespace dw::core; /* * Create and initialize a new image structure. */ -DilloImage *a_Image_new(int width, - int height, - const char *alt_text, - int32_t bg_color) +DilloImage *a_Image_new(const char *alt_text, int32_t bg_color) { DilloImage *Image; diff --git a/src/image.hh b/src/image.hh index 542147bc..c1b0e918 100644 --- a/src/image.hh +++ b/src/image.hh @@ -50,8 +50,7 @@ struct _DilloImage { /* * Function prototypes */ -DilloImage *a_Image_new(int width, int height, - const char *alt_text, int32_t bg_color); +DilloImage *a_Image_new(const char *alt_text, int32_t bg_color); void a_Image_ref(DilloImage *Image); void a_Image_unref(DilloImage *Image); -- cgit v1.2.3