summaryrefslogtreecommitdiff
path: root/riscos/history.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-12-27 00:11:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-12-27 00:11:57 +0000
commit59fb052818656e74162d7f026f7089ec42c1e8a0 (patch)
treee5b8bf21e2201adf5170f2bfde49ae4423902f63 /riscos/history.c
parent2363d8f5af7302924a0ce3608d971f5594710f3f (diff)
downloadnetsurf-59fb052818656e74162d7f026f7089ec42c1e8a0.tar.gz
netsurf-59fb052818656e74162d7f026f7089ec42c1e8a0.tar.bz2
[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
Diffstat (limited to 'riscos/history.c')
-rw-r--r--riscos/history.c9
1 files changed, 5 insertions, 4 deletions
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 <stdbool.h>
#include <stdlib.h>
+#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,