summaryrefslogtreecommitdiff
path: root/riscos/hotlist.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/hotlist.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/hotlist.c')
-rw-r--r--riscos/hotlist.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/riscos/hotlist.c b/riscos/hotlist.c
index f7ed7516b..2e9797f13 100644
--- a/riscos/hotlist.c
+++ b/riscos/hotlist.c
@@ -1285,7 +1285,8 @@ int ro_gui_hotlist_redraw_tree(struct hotlist_entry *entry, int level, int x0, i
*/
if (first && (level == 0)) {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_BLINE], x0 + 8, y0 - HOTLIST_LINE_HEIGHT, 0);
+ sprite[HOTLIST_BLINE], x0 + 8, y0 - HOTLIST_LINE_HEIGHT,
+ tinct_BILINEAR_FILTER);
y0 -= HOTLIST_LINE_HEIGHT;
height -= HOTLIST_LINE_HEIGHT;
}
@@ -1294,7 +1295,8 @@ int ro_gui_hotlist_redraw_tree(struct hotlist_entry *entry, int level, int x0, i
*/
while (height > 0) {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_LINE], x0 + 8, y0 - HOTLIST_LINE_HEIGHT, 0);
+ sprite[HOTLIST_LINE], x0 + 8, y0 - HOTLIST_LINE_HEIGHT,
+ tinct_BILINEAR_FILTER);
y0 -= HOTLIST_LINE_HEIGHT;
height -= HOTLIST_LINE_HEIGHT;
}
@@ -1304,7 +1306,8 @@ int ro_gui_hotlist_redraw_tree(struct hotlist_entry *entry, int level, int x0, i
*/
if (!first || (level != 0)) {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_TLINE], x0 + 8, y0 - 22, 0);
+ sprite[HOTLIST_TLINE], x0 + 8, y0 - 22,
+ tinct_BILINEAR_FILTER);
height -= HOTLIST_LINE_HEIGHT;
y0 -= HOTLIST_LINE_HEIGHT;
}
@@ -1314,14 +1317,17 @@ int ro_gui_hotlist_redraw_tree(struct hotlist_entry *entry, int level, int x0, i
*/
if (entry->children == 0) {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_ENTRY], x0, box_y0 - 23, 0);
+ sprite[HOTLIST_ENTRY], x0, box_y0 - 23,
+ tinct_BILINEAR_FILTER);
} else {
if (entry->expanded) {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_COLLAPSE], x0, box_y0 - 31, 0);
+ sprite[HOTLIST_COLLAPSE], x0, box_y0 - 31,
+ tinct_BILINEAR_FILTER);
} else {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_EXPAND], x0, box_y0 - 31, 0);
+ sprite[HOTLIST_EXPAND], x0, box_y0 - 31,
+ tinct_BILINEAR_FILTER);
}
}
@@ -1430,13 +1436,16 @@ int ro_gui_hotlist_redraw_item(struct hotlist_entry *entry, int level, int x0, i
while (line_height > 0) {
if (line_height == HOTLIST_LINE_HEIGHT) {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_TLINE], x0 + 16, line_y0 - 22, 0);
+ sprite[HOTLIST_TLINE], x0 + 16, line_y0 - 22,
+ tinct_BILINEAR_FILTER);
} else {
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_LINE], x0 + 16, line_y0 - HOTLIST_LINE_HEIGHT, 0);
+ sprite[HOTLIST_LINE], x0 + 16, line_y0 - HOTLIST_LINE_HEIGHT,
+ tinct_BILINEAR_FILTER);
}
_swix(Tinct_Plot, _IN(2) | _IN(3) | _IN(4) | _IN(7),
- sprite[HOTLIST_ENTRY], x0 + 8, line_y0 - 23, 0);
+ sprite[HOTLIST_ENTRY], x0 + 8, line_y0 - 23,
+ tinct_BILINEAR_FILTER);
line_height -= HOTLIST_LINE_HEIGHT;
line_y0 -= HOTLIST_LINE_HEIGHT;
}