From 88bf9d7ddcb61e31b92ea2dc983457ae5fa67e1c Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Sat, 10 Apr 2004 20:04:11 +0000 Subject: [project @ 2004-04-10 20:04:11 by rjw] Fix for thumbnail palette bug. Fix for upper case iconsprite names. Uses thumbnail sprite creation routines. svn path=/import/netsurf/; revision=747 --- riscos/history.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index f155afa34..aa574ba44 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -106,7 +106,7 @@ void history_add(struct history *history, struct content *content) char *split; int width; osspriteop_area *area; - os_error *error; +// os_error *error; if (!history) return; @@ -153,7 +153,7 @@ void history_add(struct history *history, struct content *content) } history->current = entry; - area = malloc(SPRITE_SIZE); +/* area = malloc(SPRITE_SIZE); if (!area) { LOG(("malloc failed")); return; @@ -171,7 +171,12 @@ void history_add(struct history *history, struct content *content) LOG(("0x%x: %s", error->errnum, error->errmess)); return; } - + */ + area = thumbnail_initialise(WIDTH / 2, HEIGHT / 2, (os_mode)0x301680b5); + if (!area) { + LOG(("Thumbnail initialisation failed.")); + return; + } thumbnail_create(content, area, (osspriteop_header *) (area + 1), WIDTH / 2, HEIGHT / 2); @@ -410,6 +415,7 @@ void ro_gui_history_redraw_tree(struct history_entry *he, area, (osspriteop_id)header, colourtrans_CURRENT_MODE, colourtrans_CURRENT_PALETTE, 0, colourtrans_GIVEN_SPRITE, 0, 0, &size); + LOG(("Table size of %i", size)); table = xcalloc(size, 1); xcolourtrans_generate_table_for_sprite( area, (osspriteop_id)header, -- cgit v1.2.3