summaryrefslogtreecommitdiff
path: root/riscos/history.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-11-02 23:23:07 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-11-02 23:23:07 +0000
commit1fbcdd14d550e005863096ed216f490986a583c1 (patch)
tree60c17e5f327391a726e5508376a860522af5b665 /riscos/history.c
parentbe3ce1f3a9f7fed2613f5cf28c5e4d83fae7497b (diff)
downloadnetsurf-1fbcdd14d550e005863096ed216f490986a583c1.tar.gz
netsurf-1fbcdd14d550e005863096ed216f490986a583c1.tar.bz2
[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
Diffstat (limited to 'riscos/history.c')
-rw-r--r--riscos/history.c7
1 files changed, 3 insertions, 4 deletions
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,