From f478ee4db70f36b4a3231832ff5bdfcc98c60c7e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 20 Aug 2012 18:54:57 +0100 Subject: Remove a bunch of unused includes. --- atari/browser_win.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'atari/browser_win.c') diff --git a/atari/browser_win.c b/atari/browser_win.c index 087710170..1babbad38 100755 --- a/atari/browser_win.c +++ b/atari/browser_win.c @@ -41,12 +41,10 @@ #include "content/hlcache.h" #include "content/urldb.h" #include "css/css.h" -#include "render/box.h" -#include "render/form.h" #include "atari/gui.h" #include "atari/browser_win.h" #include "atari/browser.h" -#include "atari/misc.h" +#include "atari/misc.h" #include "atari/plot/plot.h" #include "atari/global_evnt.h" #include "atari/res/netsurf.rsh" @@ -154,7 +152,7 @@ int window_create( struct gui_window * gw, EvntDataAttach( gw->root->handle, WM_CLOSED, evnt_window_close, gw ); /* capture resize/move events so we can handle that manually */ EvntDataAdd( gw->root->handle, WM_SIZED, evnt_window_rt_resize, gw, EV_BOT ); - EvntDataAdd( gw->root->handle, WM_MOVED, evnt_window_rt_resize, gw, EV_BOT ); + EvntDataAdd( gw->root->handle, WM_MOVED, evnt_window_rt_resize, gw, EV_BOT ); EvntDataAdd( gw->root->handle, WM_FULLED, evnt_window_rt_resize, gw, EV_BOT ); EvntDataAdd( gw->root->handle, WM_DESTROY,evnt_window_destroy, gw, EV_TOP ); EvntDataAdd( gw->root->handle, WM_ARROWED,evnt_window_arrowed, gw, EV_TOP ); @@ -162,7 +160,7 @@ int window_create( struct gui_window * gw, EvntDataAdd( gw->root->handle, WM_TOPPED, evnt_window_newtop, gw, EV_BOT); EvntDataAdd( gw->root->handle, WM_ICONIFY, evnt_window_iconify, gw, EV_BOT); EvntDataAdd( gw->root->handle, WM_UNICONIFY, evnt_window_uniconify, gw, EV_BOT); - EvntDataAttach( gw->root->handle, AP_DRAGDROP, evnt_window_dd, gw ); + EvntDataAttach( gw->root->handle, AP_DRAGDROP, evnt_window_dd, gw ); EvntDataAttach( gw->root->handle, WM_ICONDRAW, evnt_window_icondraw, gw); EvntDataAttach( gw->root->handle, WM_SLIDEXY, evnt_window_slider, gw ); @@ -227,16 +225,16 @@ void window_open( struct gui_window * gw, GRECT pos ) /* recompute the nested component sizes and positions: */ browser_update_rects( gw ); mt_WindGetGrect( &app, gw->root->handle, WF_CURRXYWH, (GRECT*)&gw->root->loc); - browser_get_rect( gw, BR_CONTENT, &br ); + browser_get_rect( gw, BR_CONTENT, &br ); plot_set_dimensions(br.g_x, br.g_y, br.g_w, br.g_h); gw->browser->attached = true; if( gw->root->statusbar != NULL ){ gw->root->statusbar->attached = true; } - tb_adjust_size( gw ); + tb_adjust_size( gw ); /*TBD: get already present content and set size? */ input_window = gw; - window_set_focus( gw, BROWSER, gw->browser ); + window_set_focus( gw, BROWSER, gw->browser ); } @@ -499,9 +497,9 @@ static void __CDECL evnt_window_icondraw( WINDOW *win, short buff[8], void * dat tree->ob_height = h; mt_objc_draw( tree, 0, 8, buff[4], buff[5], buff[6], buff[7], app.aes_global ); } else { - struct rect clip = { 0,0,w,h }; + struct rect clip = { 0,0,w,h }; plot_set_dimensions( x,y,w,h ); - plot_clip(&clip); + plot_clip(&clip); atari_plotters.bitmap(0, 0, w, h, gw->icon, 0xffffff, 0); } } -- cgit v1.2.3