diff options
author | Jeremy Henty <onepoint@starurchin.org> | 2009-05-07 16:35:03 -0400 |
---|---|---|
committer | Jeremy Henty <onepoint@starurchin.org> | 2009-05-07 16:35:03 -0400 |
commit | 7034881b87b53b087bae78aef8380e5258f68a24 (patch) | |
tree | e8798ededb6f3791fe8c1e38f60ed0670fb8ea20 /src | |
parent | a975d5033ed5905cd05b08bf752851325d34a0a7 (diff) |
Cleanup in a_Image_new() signature
Diffstat (limited to 'src')
-rw-r--r-- | src/dicache.c | 2 | ||||
-rw-r--r-- | src/html.cc | 2 | ||||
-rw-r--r-- | src/image.cc | 5 | ||||
-rw-r--r-- | src/image.hh | 3 |
4 files changed, 4 insertions, 8 deletions
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); |