From 3d9a1198db571973e2760d6f27c771cbe31c844b Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 22 Feb 2006 01:58:19 +0000 Subject: [project @ 2006-02-22 01:58:19 by rjw] Reduce constant bitmap overhead per reference by moving to a flag word. Allow bitmaps to be reduced back to their raw data to free extra memory in a highly efficient manner. svn path=/import/netsurf/; revision=2089 --- riscos/history.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index 46ef458bf..8b9beaa12 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -179,12 +179,12 @@ void history_add(struct history *history, struct content *content, char *frag_id bitmap = url_store_get_thumbnail(url); if (!bitmap) { bitmap = bitmap_create(WIDTH / 2, HEIGHT / 2, - BITMAP_ALLOCATE_MEMORY); + BITMAP_NEW | BITMAP_CLEAR_MEMORY | + BITMAP_OPAQUE | BITMAP_PERSISTENT); if (!bitmap) { LOG(("Thumbnail initialisation failed.")); return; } - bitmap_set_opaque(bitmap, true); thumbnail_create(content, bitmap, url); } entry->bitmap = bitmap; -- cgit v1.2.3