diff options
author | Ole Loots <ole@monochrom.net> | 2011-08-05 10:34:06 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-08-05 10:34:06 +0000 |
commit | cc52da39f7d5b3c4998aecdc890c560d824a5d25 (patch) | |
tree | 5be0e7d4675716e5361665e002149e519209fcc6 | |
parent | 68b52a602399c98e8071feffb51b65cc1e3b469d (diff) | |
download | netsurf-cc52da39f7d5b3c4998aecdc890c560d824a5d25.tar.gz netsurf-cc52da39f7d5b3c4998aecdc890c560d824a5d25.tar.bz2 |
Added missing position update when window got moved.
svn path=/trunk/netsurf/; revision=12637
-rwxr-xr-x | atari/browser_win.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/atari/browser_win.c b/atari/browser_win.c index f44afbc22..c6d091d4f 100755 --- a/atari/browser_win.c +++ b/atari/browser_win.c @@ -379,7 +379,7 @@ int window_destroy( struct gui_window * gw) void window_open( struct gui_window * gw)
{
- LGRECT br; + LGRECT br;
GRECT dim;
WindOpen(gw->root->handle, 20, 20, app.w/2, app.h/2 );
WindSetStr( gw->root->handle, WF_NAME, (char *)"" );
@@ -387,7 +387,7 @@ void window_open( struct gui_window * gw) long lfbuff[8] = { CM_GETFOCUS };
mt_CompEvntExec( gl_appvar, gw->browser->comp, lfbuff );
/* recompute the nested component sizes and positions: */
- browser_update_rects( gw ); + browser_update_rects( gw );
mt_WindGetGrect( &app, gw->root->handle, WF_CURRXYWH, (GRECT*)&gw->root->loc);
browser_get_rect( gw, BR_CONTENT, &br );
plotter->move( plotter, br.g_x, br.g_y );
@@ -709,11 +709,9 @@ static void __CDECL evnt_window_move( WINDOW *win, short buff[8], void * data ) void __CDECL evnt_window_resize( WINDOW *win, short buff[8], void * data )
{
- //short mx,my, mb, ks;
short wx, wy, wh, ww, nw, nh;
short r;
- // graf_mkstate( &mx, &my, &mb, &ks );
wind_get( win->handle, WF_CURRXYWH, &wx, &wy, &ww, &wh );
r = graf_rubberbox(wx, wy, 20, 20, &nw, &nh);
if( nw < 40 && nw < 40 )
@@ -745,7 +743,7 @@ static void __CDECL evnt_window_rt_resize( WINDOW *win, short buff[8], void * da if(gw->root->loc.g_w != w || gw->root->loc.g_h != h ){
/* report resize to component interface: */
- browser_update_rects( gw ); + browser_update_rects( gw );
mt_WindGetGrect( &app, gw->root->handle, WF_CURRXYWH, (GRECT*)&gw->root->loc);
browser_get_rect( gw, BR_CONTENT, &rect );
if( gw->browser->bw->current_content != NULL )
@@ -756,6 +754,7 @@ static void __CDECL evnt_window_rt_resize( WINDOW *win, short buff[8], void * da } else {
if(gw->root->loc.g_x != x || gw->root->loc.g_y != y ){
mt_WindGetGrect( &app, gw->root->handle, WF_CURRXYWH, (GRECT*)&gw->root->loc);
+ browser_update_rects( gw );
}
}
}
|