summaryrefslogtreecommitdiff
path: root/riscos/history.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-04-10 20:04:11 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-04-10 20:04:11 +0000
commit88bf9d7ddcb61e31b92ea2dc983457ae5fa67e1c (patch)
tree16c2d9b0496debef4ef5204c5f25242b2db23ee4 /riscos/history.c
parent4244812ff9a0011e46a91f4d9cb5074cd3814526 (diff)
downloadnetsurf-88bf9d7ddcb61e31b92ea2dc983457ae5fa67e1c.tar.gz
netsurf-88bf9d7ddcb61e31b92ea2dc983457ae5fa67e1c.tar.bz2
[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
Diffstat (limited to 'riscos/history.c')
-rw-r--r--riscos/history.c12
1 files changed, 9 insertions, 3 deletions
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,