summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-05-05 16:33:15 +0000
committerJames Bursa <james@netsurf-browser.org>2004-05-05 16:33:15 +0000
commitbb41604045cbabbf9aea502ccc9b0e9db50e6aa7 (patch)
tree73e84936444d0e418cf4c029b347e2205edd552a /desktop
parent9deb539031dbd92dc9caa45221e21a018fb2a570 (diff)
downloadnetsurf-bb41604045cbabbf9aea502ccc9b0e9db50e6aa7.tar.gz
netsurf-bb41604045cbabbf9aea502ccc9b0e9db50e6aa7.tar.bz2
[project @ 2004-05-05 16:33:15 by bursa]
Fix some compiler warnings. Ignore size attribute for file inputs. svn path=/import/netsurf/; revision=828
Diffstat (limited to 'desktop')
-rw-r--r--desktop/browser.c11
-rw-r--r--desktop/gui.h2
2 files changed, 5 insertions, 8 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 064c229cb..91474259a 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -600,7 +600,7 @@ void browser_window_gadget_select(struct browser_window* bw, struct form_control
inline_box->width = g->box->width;
inline_box->length = strlen(inline_box->text);
- box_coords(g->box, (unsigned long*)&x, (unsigned long*)&y);
+ box_coords(g->box, &x, &y);
gui_window_redraw(bw->window, (unsigned int)x, (unsigned int)y,
(unsigned int)(x + g->box->width),
(unsigned int)(y + g->box->height));
@@ -611,7 +611,7 @@ int browser_window_gadget_click(struct browser_window* bw, unsigned long click_x
struct box_selection* click_boxes;
int found, plot_index;
int i;
- unsigned long x, y;
+ int x, y;
found = 0;
click_boxes = NULL;
@@ -790,8 +790,8 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void
struct box *ic;
int char_offset = textarea->gadget->caret_char_offset;
int pixel_offset, dy;
- unsigned long actual_x, actual_y;
- unsigned long width=0, height=0;
+ int actual_x, actual_y;
+ unsigned long width = 0, height = 0;
bool reflow = false;
box_coords(textarea, &actual_x, &actual_y);
@@ -1144,7 +1144,7 @@ void browser_window_input_callback(struct browser_window *bw, char key, void *p)
struct box *text_box = input->children->children;
int char_offset = input->gadget->caret_char_offset;
int pixel_offset;
- unsigned long actual_x, actual_y;
+ int actual_x, actual_y;
struct form* form = input->gadget->form;
box_coords(input, &actual_x, &actual_y);
@@ -1451,7 +1451,6 @@ void browser_window_follow_link(struct browser_window *bw,
int done = 0;
struct css_style *style;
gui_pointer_shape pointer = GUI_POINTER_DEFAULT;
- struct browser_window *new_bw;
found = 0;
click_boxes = NULL;
diff --git a/desktop/gui.h b/desktop/gui.h
index bffcc23fd..df3ed5ad9 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -23,8 +23,6 @@ typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET,
#include <stdbool.h>
#include "netsurf/content/content.h"
#include "netsurf/desktop/browser.h"
-#include "netsurf/riscos/gui.h"
-#include "netsurf/riscos/wimp.h"
bool gui_window_in_list(gui_window *g);
gui_window *gui_create_browser_window(struct browser_window *bw, struct browser_window *clone);