From 59fb052818656e74162d7f026f7089ec42c1e8a0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 27 Dec 2003 00:11:57 +0000 Subject: [project @ 2003-12-27 00:11:57 by jmb] Tidy code to reduce compiler warnings. htmlredraw.c and plugin.c produce the most now. Hopefully I haven't broken anything ;) svn path=/import/netsurf/; revision=451 --- riscos/history.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index 0e9ea8545..42711a20c 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -7,6 +7,7 @@ #include #include +#include "oslib/colourtrans.h" #include "oslib/font.h" #include "oslib/wimp.h" #include "netsurf/riscos/gui.h" @@ -114,8 +115,8 @@ void ro_gui_history_open(struct browser_window *bw, struct history_entry *entry, int wx, int wy) { bool done = false; - unsigned int i, j; - int x, max_y = 0; + unsigned int i, j, max_y = 0; + int x; struct history_entry *row[SIZE], *row2[SIZE]; struct history_entry *he; os_box box = {0, 0, 0, 0}; @@ -170,7 +171,7 @@ void ro_gui_history_open(struct browser_window *bw, } box.x1 = WIDTH * (x - 1); - box.y0 = -HEIGHT * (max_y + 1); + box.y0 = -(HEIGHT * (max_y + 1)); wimp_set_extent(history_window, &box); wimp_create_menu((wimp_menu *) history_window, wx, wy); } @@ -212,7 +213,7 @@ void ro_gui_history_redraw_tree(struct history_entry *he, if (he == history_current) wimp_set_font_colours(wimp_COLOUR_WHITE, wimp_COLOUR_RED); - else + else wimp_set_font_colours(wimp_COLOUR_WHITE, wimp_COLOUR_BLACK); font_paint(history_font, he->title, -- cgit v1.2.3