From 1fbcdd14d550e005863096ed216f490986a583c1 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 2 Nov 2004 23:23:07 +0000 Subject: [project @ 2004-11-02 23:23:07 by rjw] Fix for recent GIF decoding bug. Rectangular pixel mode-friendly sprites for hotlist. Slight change to history image size to please Tinct. Support for foreground and background image quality settings. Support for error diffusion and bi-linear filtering (Tinct still requires some further work) svn path=/import/netsurf/; revision=1336 --- riscos/history.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index 8a11f4cb7..bb6adc17f 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -26,7 +26,7 @@ #define SIZE 10 #define WIDTH 200 -#define HEIGHT 150 +#define HEIGHT 152 #define MARGIN 32 #define FULL_WIDTH (WIDTH + MARGIN + MARGIN) #define FULL_HEIGHT (HEIGHT + MARGIN + MARGIN) @@ -406,7 +406,7 @@ void ro_gui_history_redraw_tree(struct history_entry *he, /* Because we're supporting people with OS3.1 we need to check if the sprite we have is a legacy 256 colour one */ - if (header->mode == (os_mode)0x301680b5) { + if (header->mode == (os_mode)tinct_SPRITE_MODE) { /* We plot with no mask and no scaling as any EIG factors are handled internally by Tinct @@ -415,7 +415,7 @@ void ro_gui_history_redraw_tree(struct history_entry *he, (char *)(header), x0 + he->x * FULL_WIDTH + MARGIN, y0 - he->y * FULL_HEIGHT - FULL_HEIGHT + MARGIN, - (option_filter_sprites?tinct_BILINEAR_FILTER:0) | (option_dither_sprites?tinct_DITHER:0)); + tinct_ERROR_DIFFUSE); } else { unsigned int size; os_factors factors; @@ -424,7 +424,6 @@ 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