Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/5a58e844e43b397b3154d...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/5a58e844e43b397b3154d56...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/5a58e844e43b397b3154d5635...
The branch, master has been updated
via 5a58e844e43b397b3154d5635859fe1d78c27877 (commit)
from b41685208f25a906b8a08809e67c2a1a2ec153d9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=5a58e844e43b397b315...
commit 5a58e844e43b397b3154d5635859fe1d78c27877
Author: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Commit: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Don't clear bitmap structure on allocation
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index 6984d3e..cc71ccd 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -49,16 +49,21 @@ void *amiga_bitmap_create(int width, int height, unsigned int state)
{
struct bitmap *bitmap;
- bitmap = ami_misc_allocvec_clear(sizeof(struct bitmap), 0);
- if(bitmap)
- {
- bitmap->pixdata = ami_misc_allocvec_clear(width*height*4, 0xff);
- bitmap->width = width;
- bitmap->height = height;
+ bitmap = AllocVecTagList(sizeof(struct bitmap), NULL);
+ if(bitmap == NULL) return NULL;
- if(state & BITMAP_OPAQUE) bitmap->opaque = true;
- else bitmap->opaque = false;
- }
+ bitmap->pixdata = ami_misc_allocvec_clear(width*height*4, 0xff);
+ bitmap->width = width;
+ bitmap->height = height;
+
+ if(state & BITMAP_OPAQUE) bitmap->opaque = true;
+ else bitmap->opaque = false;
+
+ bitmap->nativebm = NULL;
+ bitmap->nativebmwidth = 0;
+ bitmap->nativebmheight = 0;
+ bitmap->native_mask = NULL;
+ bitmap->dto = NULL;
return bitmap;
}
-----------------------------------------------------------------------
Summary of changes:
amiga/bitmap.c | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index 6984d3e..cc71ccd 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -49,16 +49,21 @@ void *amiga_bitmap_create(int width, int height, unsigned int state)
{
struct bitmap *bitmap;
- bitmap = ami_misc_allocvec_clear(sizeof(struct bitmap), 0);
- if(bitmap)
- {
- bitmap->pixdata = ami_misc_allocvec_clear(width*height*4, 0xff);
- bitmap->width = width;
- bitmap->height = height;
+ bitmap = AllocVecTagList(sizeof(struct bitmap), NULL);
+ if(bitmap == NULL) return NULL;
- if(state & BITMAP_OPAQUE) bitmap->opaque = true;
- else bitmap->opaque = false;
- }
+ bitmap->pixdata = ami_misc_allocvec_clear(width*height*4, 0xff);
+ bitmap->width = width;
+ bitmap->height = height;
+
+ if(state & BITMAP_OPAQUE) bitmap->opaque = true;
+ else bitmap->opaque = false;
+
+ bitmap->nativebm = NULL;
+ bitmap->nativebmwidth = 0;
+ bitmap->nativebmheight = 0;
+ bitmap->native_mask = NULL;
+ bitmap->dto = NULL;
return bitmap;
}
--
NetSurf Browser