Mercurial > dillo_port1.3
changeset 1084:4d3828de8290
Cleanup in a_Image_new() signature
author | Jeremy Henty <onepoint@starurchin.org> |
---|---|
date | Thu, 07 May 2009 16:35:03 -0400 |
parents | b5e9472021cc |
children | d6767b7bdf93 |
files | src/dicache.c src/html.cc src/image.cc src/image.hh |
diffstat | 4 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dicache.c Thu May 07 16:28:16 2009 -0400 +++ b/src/dicache.c Thu May 07 16:35:03 2009 -0400 @@ -398,7 +398,7 @@ 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);
--- a/src/html.cc Thu May 07 16:28:16 2009 -0400 +++ b/src/html.cc Thu May 07 16:35:03 2009 -0400 @@ -2064,7 +2064,7 @@ 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();
--- a/src/image.cc Thu May 07 16:28:16 2009 -0400 +++ b/src/image.cc Thu May 07 16:35:03 2009 -0400 @@ -33,10 +33,7 @@ /* * 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;
--- a/src/image.hh Thu May 07 16:28:16 2009 -0400 +++ b/src/image.hh Thu May 07 16:35:03 2009 -0400 @@ -50,8 +50,7 @@ /* * 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);