diff options
author | Ole Loots <ole@monochrom.net> | 2011-11-30 23:08:21 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-11-30 23:08:21 +0000 |
commit | b20f47262ba01db6a5786314d3457c54bcf471a8 (patch) | |
tree | edf04914d3d3802830e98bb8531ad43d16feefe6 /atari/browser_win.c | |
parent | 9efb276f977a9db2f378930c213a5c1f21098b57 (diff) | |
download | netsurf-b20f47262ba01db6a5786314d3457c54bcf471a8.tar.gz netsurf-b20f47262ba01db6a5786314d3457c54bcf471a8.tar.bz2 |
Open window by configured width,
removed unused variables
svn path=/trunk/netsurf/; revision=13212
Diffstat (limited to 'atari/browser_win.c')
-rwxr-xr-x | atari/browser_win.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/atari/browser_win.c b/atari/browser_win.c index cb409395f..92744bba4 100755 --- a/atari/browser_win.c +++ b/atari/browser_win.c @@ -163,14 +163,12 @@ static void window_track_mouse_state( LGRECT * bwrect, bool within, short mx, sh }
}
-int window_create( struct gui_window * gw, struct browser_window * bw, unsigned long inflags)
+int window_create( struct gui_window * gw, + struct browser_window * bw, + unsigned long inflags )
{
- short buff[8];
- OBJECT * tbtree;
int err = 0;
bool tb, sb; - short sc; - short w,h, wx, wy, wh, ww; int flags; tb = (inflags & WIDGET_TOOLBAR );
@@ -255,7 +253,6 @@ int window_create( struct gui_window * gw, struct browser_window * bw, unsigned int window_destroy( struct gui_window * gw)
{
- short buff[8];
int err = 0;
search_destroy( gw );
@@ -294,12 +291,11 @@ int window_destroy( struct gui_window * gw) -void window_open( struct gui_window * gw)
+void window_open( struct gui_window * gw, GRECT pos )
{
- LGRECT br;
- GRECT dim; + LGRECT br; - WindOpen(gw->root->handle, 20, 20, app.w/2, app.h/2 ); + WindOpen(gw->root->handle, pos.g_x, pos.g_y, pos.g_w, pos.g_h ); WindClear( gw->root->handle );
WindSetStr( gw->root->handle, WF_NAME, (char *)"" ); @@ -642,7 +638,6 @@ static void __CDECL evnt_window_slider( WINDOW * win, short buff[8], void * data { int dx = buff[4];
int dy = buff[5];
- GRECT work, screen;
struct gui_window * gw = data;
if (!dx && !dy) return;
@@ -697,10 +692,7 @@ static void __CDECL evnt_window_icondraw( WINDOW *win, short buff[8], void * dat static void __CDECL evnt_window_move( WINDOW *win, short buff[8], void * data )
{
- short mx,my, mb, ks;
short wx, wy, wh, ww, nx, ny;
- short r;
- short xoff, yoff;
if( option_atari_realtime_move ) {
std_mvd( win, buff, &app );
evnt_window_rt_resize( win, buff, data );
@@ -738,8 +730,7 @@ void __CDECL evnt_window_resize( WINDOW *win, short buff[8], void * data ) static void __CDECL evnt_window_rt_resize( WINDOW *win, short buff[8], void * data )
{
short x,y,w,h;
- struct gui_window * gw;
- LGRECT rect; + struct gui_window * gw; if(buff[0] == WM_FORCE_MOVE ) {
std_mvd(win, buff, &app);
|