r13212 mono - in /trunk/netsurf/atari: browser.c browser_win.c browser_win.h global_evnt.c gui.c
by netsurf@semichrome.net
Author: mono
Date: Wed Nov 30 17:08:21 2011
New Revision: 13212
URL: http://source.netsurf-browser.org?rev=13212&view=rev
Log:
Open window by configured width,
removed unused variables
Modified:
trunk/netsurf/atari/browser.c
trunk/netsurf/atari/browser_win.c
trunk/netsurf/atari/browser_win.h
trunk/netsurf/atari/global_evnt.c
trunk/netsurf/atari/gui.c
Modified: trunk/netsurf/atari/browser.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser.c?rev=13212...
==============================================================================
--- trunk/netsurf/atari/browser.c (original)
+++ trunk/netsurf/atari/browser.c Wed Nov 30 17:08:21 2011
@@ -91,9 +91,6 @@
int lt, int w, int flex
)
{
- LGRECT cwork;
- COMPONENT * scrollv, * scrollh, * drawable;
-
CMP_BROWSER bnew = (CMP_BROWSER)malloc( sizeof(struct s_browser) );
if( bnew )
{
@@ -177,7 +174,6 @@
void browser_update_rects(struct gui_window * gw )
{
short buff[8];
- LGRECT cmprect;
mt_WindGetGrect( &app, gw->root->handle, WF_CURRXYWH, (GRECT*)&buff[4]);
buff[0] = CM_REFLOW;
buff[1] = _AESapid;
@@ -223,7 +219,6 @@
static void __CDECL browser_evnt_mbutton( COMPONENT * c, long buff[8], void * data)
{
- long lbuff[8];
short mx, my, dummy, mbut;
uint32_t tnow = clock()*1000 / CLOCKS_PER_SEC;
LGRECT cwork;
@@ -597,8 +592,6 @@
{
assert( gw != NULL );
CMP_BROWSER b = gw->browser;
- int i;
- struct rect area;
LGRECT work;
if( y1 < 0 || x1 < 0 )
@@ -618,7 +611,6 @@
static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff,
struct rect * area )
{
- LGRECT work;
CMP_BROWSER b = gw->browser;
struct redraw_context ctx = {
@@ -839,7 +831,6 @@
static void __CDECL browser_evnt_redraw( COMPONENT * c, long buff[8], void * data)
{
- short pxy[8];
struct gui_window * gw = (struct gui_window *) data;
CMP_BROWSER b = gw->browser;
LGRECT work, lclip;
Modified: trunk/netsurf/atari/browser_win.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser_win.c?rev=1...
==============================================================================
--- trunk/netsurf/atari/browser_win.c (original)
+++ trunk/netsurf/atari/browser_win.c Wed Nov 30 17:08:21 2011
@@ -163,14 +163,12 @@
}
}
-int window_create( struct gui_window * gw, struct browser_window * bw, unsigned long inflags)
-{
- short buff[8];
- OBJECT * tbtree;
+int window_create( struct gui_window * gw,
+ struct browser_window * bw,
+ unsigned long inflags )
+{
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_destroy( struct gui_window * gw)
{
- short buff[8];
int err = 0;
search_destroy( gw );
@@ -294,12 +291,11 @@
-void window_open( struct gui_window * gw)
-{
- LGRECT br;
- GRECT dim;
-
- WindOpen(gw->root->handle, 20, 20, app.w/2, app.h/2 );
+void window_open( struct gui_window * gw, GRECT pos )
+{
+ LGRECT br;
+
+ 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 @@
{
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_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 @@
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);
Modified: trunk/netsurf/atari/browser_win.h
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser_win.h?rev=1...
==============================================================================
--- trunk/netsurf/atari/browser_win.h (original)
+++ trunk/netsurf/atari/browser_win.h Wed Nov 30 17:08:21 2011
@@ -34,12 +34,13 @@
/* -------------------------------------------------------------------------- */
/* Creates an normal Browser window with [toolbar], [statusbar] */
-int window_create( struct gui_window * gw, struct browser_window * bw, unsigned long flags );
+int window_create( struct gui_window * gw,
+ struct browser_window * bw, unsigned long flags );
/* Destroys WinDom part of gui_window */
int window_destroy( struct gui_window * gw );
/* show the window */
-void window_open( struct gui_window * gw);
+void window_open( struct gui_window * gw, GRECT pos);
void window_snd_redraw(struct gui_window * gw, short x, short y, short w, short h );
/* Update Shade / Unshade state of the fwd/back buttons*/
@@ -56,7 +57,6 @@
bool window_url_widget_has_focus( struct gui_window * gw );
void window_set_url( struct gui_window * gw, const char * text);
void window_set_stauts( struct gui_window * gw , char * text );
-void window_center(struct gui_window * gw);
void window_set_icon(struct gui_window * gw, struct bitmap * bmp );
Modified: trunk/netsurf/atari/global_evnt.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/global_evnt.c?rev=1...
==============================================================================
--- trunk/netsurf/atari/global_evnt.c (original)
+++ trunk/netsurf/atari/global_evnt.c Wed Nov 30 17:08:21 2011
@@ -476,7 +476,7 @@
accel->mod |= K_CTRL;
s++;
}
-parsekey:
+
/* expect F1/F10 or something like A, B, C ... : */
if(strlen(s) >= 2 && s[0] == 'F' ) {
if(s[1] >= 49 && s[1] <= 57) {
Modified: trunk/netsurf/atari/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/gui.c?rev=13212&r1=...
==============================================================================
--- trunk/netsurf/atari/gui.c (original)
+++ trunk/netsurf/atari/gui.c Wed Nov 30 17:08:21 2011
@@ -204,8 +204,12 @@
LOG(("new window: %p, bw: %p\n", gw, bw));
window_create(gw, bw, WIDGET_STATUSBAR|WIDGET_TOOLBAR|WIDGET_RESIZE|WIDGET_SCROLL );
- if( gw->root->handle ) {
- window_open( gw );
+ if( gw->root->handle ) {
+ GRECT pos = {
+ app.w/2-(cfg_width/2), app.h/2-(cfg_height/2),
+ cfg_width, cfg_height
+ };
+ window_open( gw , pos );
/* Recalculate windows browser area now */
browser_update_rects( gw );
tb_update_buttons( gw );
11 years, 9 months
r13211 mono - /trunk/netsurf/atari/toolbar.c
by netsurf@semichrome.net
Author: mono
Date: Wed Nov 30 16:37:57 2011
New Revision: 13211
URL: http://source.netsurf-browser.org?rev=13211&view=rev
Log:
Copy (whole) URL on Copy key.
Modified:
trunk/netsurf/atari/toolbar.c
Modified: trunk/netsurf/atari/toolbar.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/toolbar.c?rev=13211...
==============================================================================
--- trunk/netsurf/atari/toolbar.c (original)
+++ trunk/netsurf/atari/toolbar.c Wed Nov 30 16:37:57 2011
@@ -674,6 +674,18 @@
ret = true;
}
}
+ else if( ik == KEY_COPY_SELECTION ){
+ // copy whole text
+ char * text;
+ int len;
+ len = textarea_get_text( tb->url.textarea, NULL, 0 );
+ text = malloc( len+1 );
+ if( text ){
+ textarea_get_text( tb->url.textarea, text, len+1 );
+ scrap_txt_write( &app, text );
+ free( text );
+ }
+ }
else {
ret = textarea_keypress( tb->url.textarea, ik );
}
11 years, 9 months
r13210 mono - /trunk/netsurf/atari/global_evnt.c
by netsurf@semichrome.net
Author: mono
Date: Wed Nov 30 16:37:32 2011
New Revision: 13210
URL: http://source.netsurf-browser.org?rev=13210&view=rev
Log:
Removed unused declarations.
Modified:
trunk/netsurf/atari/global_evnt.c
Modified: trunk/netsurf/atari/global_evnt.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/global_evnt.c?rev=1...
==============================================================================
--- trunk/netsurf/atari/global_evnt.c (original)
+++ trunk/netsurf/atari/global_evnt.c Wed Nov 30 16:37:32 2011
@@ -641,15 +641,3 @@
}
}
-/* send redraw to all browser windows */
-void snd_redraw( short x, short y, short w, short h)
-{
- struct gui_window * gw;
- gw = window_list;
- while( gw != NULL && gw->browser->type == 0 ) {
- ApplWrite( _AESapid, WM_REDRAW, gw->root->handle->handle, x, y, w, h);
- gw = gw->next;
- }
- return;
-}
-
11 years, 9 months
r13209 mono - in /trunk/netsurf/atari: browser_win.c global_evnt.h toolbar.h
by netsurf@semichrome.net
Author: mono
Date: Wed Nov 30 16:36:52 2011
New Revision: 13209
URL: http://source.netsurf-browser.org?rev=13209&view=rev
Log:
Removed unused declarations.
Modified:
trunk/netsurf/atari/browser_win.c
trunk/netsurf/atari/global_evnt.h
trunk/netsurf/atari/toolbar.h
Modified: trunk/netsurf/atari/browser_win.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser_win.c?rev=1...
==============================================================================
--- trunk/netsurf/atari/browser_win.c (original)
+++ trunk/netsurf/atari/browser_win.c Wed Nov 30 16:36:52 2011
@@ -75,8 +75,6 @@
/* -------------------------------------------------------------------------- */
/* Static module methods follow here: */
/* -------------------------------------------------------------------------- */
-static void evnt_toolbar_click(WINDOW * win, short buf[8], void * data);
-static void __CDECL evnt_window_redraw( WINDOW *win, short buff[8], void *data );
static void __CDECL evnt_window_icondraw( WINDOW *win, short buff[8], void *data );
static void __CDECL evnt_window_newtop( WINDOW *win, short buff[8], void *data );
void __CDECL evnt_window_resize( WINDOW *win, short buff[8], void * data );
@@ -85,8 +83,6 @@
static void __CDECL evnt_window_close( WINDOW *win, short buff[8], void *data );
static void __CDECL evnt_window_dd( WINDOW *win, short wbuff[8], void * data ) ;
static void __CDECL evnt_window_destroy( WINDOW *win, short buff[8], void *data );
-static void __CDECL evnt_window_keybd(WINDOW *win, short buff[8], void *data );
-static void __CDECL evnt_window_mbutton(WINDOW *win, short buff[8], void *data );
static void __CDECL evnt_window_m1( WINDOW * win, short buff[8], void * data);
static void __CDECL evnt_window_slider( WINDOW * win, short buff[8], void * data);
static void __CDECL evnt_window_arrowed( WINDOW *win, short buff[8], void *data );
@@ -642,16 +638,6 @@
assert( input_window != NULL );
}
-static void __CDECL evnt_window_shaded( WINDOW *win, short buff[8], void *data )
-{
- if(buff[0] == WM_SHADED){
- LOG(("WM_SHADED, vis: %d, state: %d", GEMWIN_VISIBLE(win), win->status ));
- }
- if(buff[0] == WM_UNSHADED){
-
- }
-}
-
static void __CDECL evnt_window_slider( WINDOW * win, short buff[8], void * data)
{
int dx = buff[4];
@@ -677,8 +663,6 @@
browser_scroll( gw, WA_RTPAGE, abs(dx), false );
else if( dx < 0 )
browser_scroll( gw, WA_LFPAGE, abs(dx), false );
-
-
}
Modified: trunk/netsurf/atari/global_evnt.h
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/global_evnt.h?rev=1...
==============================================================================
--- trunk/netsurf/atari/global_evnt.h (original)
+++ trunk/netsurf/atari/global_evnt.h Wed Nov 30 16:36:52 2011
@@ -56,8 +56,6 @@
*/
-void snd_redraw(short x, short y, short w, short h);
-void snd_win_redraw(WINDOW * win, short x, short y, short w, short h);
/* Call this after each call to evnt_multi, to check for states that evnt_multi doesn't: */
void global_track_mouse_state( LGRECT * bwrect, bool within, short, short, short, short );
void bind_global_events( void );
Modified: trunk/netsurf/atari/toolbar.h
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/toolbar.h?rev=13209...
==============================================================================
--- trunk/netsurf/atari/toolbar.h (original)
+++ trunk/netsurf/atari/toolbar.h Wed Nov 30 16:36:52 2011
@@ -73,15 +73,10 @@
struct s_tb_button * buttons;
int btcnt;
};
-
+
+/* interface to the toolbar */
CMP_TOOLBAR tb_create( struct gui_window * gw );
void tb_destroy( CMP_TOOLBAR tb );
-
-
-static void __CDECL evnt_toolbar_redraw( COMPONENT *c, long buff[8], void *data );
-//static void __CDECL evnt_toolbar_mbutton( COMPONENT *c, long buff[8], void *data );
-static void __CDECL evnt_toolbar_resize( COMPONENT *c, long buff[8], void *data );
-
/* recalculate size/position of nested controls within the toolbar: */
void tb_adjust_size( struct gui_window * gw );
/* report click to toolbar, relative coords : */
@@ -91,7 +86,6 @@
void tb_forward_click( struct gui_window * gw );
void tb_home_click( struct gui_window * gw );
void tb_stop_click( struct gui_window * gw );
-
/* enable / disable buttons etc. */
void tb_update_buttons( struct gui_window * gw );
/* handles clicks on url widget: */
@@ -102,7 +96,6 @@
void tb_url_set( struct gui_window * gw, char * text );
/* perform redraw of invalidated url textinput areas: */
void tb_url_redraw( struct gui_window * gw );
-
struct gui_window * tb_gui_window( CMP_TOOLBAR tb );
#endif
11 years, 9 months
r13208 mono - /trunk/netsurf/atari/plot/plotter_vdi.c
by netsurf@semichrome.net
Author: mono
Date: Tue Nov 29 17:19:18 2011
New Revision: 13208
URL: http://source.netsurf-browser.org?rev=13208&view=rev
Log:
release screen-lock when second lock check fails.
Modified:
trunk/netsurf/atari/plot/plotter_vdi.c
Modified: trunk/netsurf/atari/plot/plotter_vdi.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/plot/plotter_vdi.c?...
==============================================================================
--- trunk/netsurf/atari/plot/plotter_vdi.c (original)
+++ trunk/netsurf/atari/plot/plotter_vdi.c Tue Nov 29 17:19:18 2011
@@ -315,8 +315,10 @@
self->flags |= PLOT_FLAG_LOCKED;
if( !wind_update(BEG_UPDATE|0x100) )
return(0);
- if( !wind_update(BEG_MCTRL|0x100) )
- return(0);
+ if( !wind_update(BEG_MCTRL|0x100) ){
+ wind_update(END_UPDATE);
+ return(0);
+ }
graf_mouse(M_OFF, NULL);
return( 1 );
}
11 years, 9 months
r13207 mono - /trunk/netsurf/atari/browser_win.c
by netsurf@semichrome.net
Author: mono
Date: Tue Nov 29 16:05:44 2011
New Revision: 13207
URL: http://source.netsurf-browser.org?rev=13207&view=rev
Log:
Check for NULL
Modified:
trunk/netsurf/atari/browser_win.c
Modified: trunk/netsurf/atari/browser_win.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser_win.c?rev=1...
==============================================================================
--- trunk/netsurf/atari/browser_win.c (original)
+++ trunk/netsurf/atari/browser_win.c Tue Nov 29 16:05:44 2011
@@ -353,14 +353,17 @@
LOG(("Set focus: %p (%d)\n", element, type));
gw->root->focus.type = type;
gw->root->focus.element = element;
- switch( type ){
-
- case URL_WIDGET:
- textarea_keypress( ((struct s_url_widget*)(element))->textarea, KEY_SELECT_ALL );
- break;
-
- default: break;
-
+ if( element != NULL ){
+ switch( type ){
+
+ case URL_WIDGET:
+ textarea_keypress(((struct s_url_widget*)(element))->textarea,
+ KEY_SELECT_ALL );
+ break;
+
+ default: break;
+
+ }
}
}
}
11 years, 9 months
r13206 mono - in /trunk/netsurf/atari: browser_win.c toolbar.c
by netsurf@semichrome.net
Author: mono
Date: Tue Nov 29 15:51:18 2011
New Revision: 13206
URL: http://source.netsurf-browser.org?rev=13206&view=rev
Log:
Handle focus event within window_set_focus, select all when url input gets focus
Modified:
trunk/netsurf/atari/browser_win.c
trunk/netsurf/atari/toolbar.c
Modified: trunk/netsurf/atari/browser_win.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser_win.c?rev=1...
==============================================================================
--- trunk/netsurf/atari/browser_win.c (original)
+++ trunk/netsurf/atari/browser_win.c Tue Nov 29 15:51:18 2011
@@ -57,6 +57,7 @@
#include "atari/search.h"
#include "atari/osspec.h"
#include "atari/encoding.h"
+#include "atari/toolbar.h"
extern void * h_gem_rsrc;
extern struct gui_window *input_window;
@@ -351,7 +352,16 @@
if( gw->root->focus.type != type || gw->root->focus.element != element ) {
LOG(("Set focus: %p (%d)\n", element, type));
gw->root->focus.type = type;
- gw->root->focus.element = element;
+ gw->root->focus.element = element;
+ switch( type ){
+
+ case URL_WIDGET:
+ textarea_keypress( ((struct s_url_widget*)(element))->textarea, KEY_SELECT_ALL );
+ break;
+
+ default: break;
+
+ }
}
}
Modified: trunk/netsurf/atari/toolbar.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/toolbar.c?rev=13206...
==============================================================================
--- trunk/netsurf/atari/toolbar.c (original)
+++ trunk/netsurf/atari/toolbar.c Tue Nov 29 15:51:18 2011
@@ -312,12 +312,10 @@
/* TODO: reset mouse state of browser window? */
/* select whole text when newly focused, otherwise set caret to end of text */
if( !window_url_widget_has_focus(gw) ) {
- // TODO select all ( needs textarea change )
window_set_focus( gw, URL_WIDGET, (void*)&tb->url );
- textarea_mouse_action( tb->url.textarea, BROWSER_MOUSE_PRESS_1, mx, my );
} else {
if( mb & 1 ) {
- /* TODO: if the button is dragging, report draw event */
+ /* TODO: if the button is dragging, report drag event */
} else {
/* TODO: recognize click + shift key */
int mstate = BROWSER_MOUSE_PRESS_1;
11 years, 9 months
r13204 mono - /trunk/netsurf/atari/misc.c
by netsurf@semichrome.net
Author: mono
Date: Tue Nov 29 15:31:31 2011
New Revision: 13204
URL: http://source.netsurf-browser.org?rev=13204&view=rev
Log:
Added missing insert key conversion.
Modified:
trunk/netsurf/atari/misc.c
Modified: trunk/netsurf/atari/misc.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/misc.c?rev=13204&r1...
==============================================================================
--- trunk/netsurf/atari/misc.c (original)
+++ trunk/netsurf/atari/misc.c Tue Nov 29 15:31:31 2011
@@ -35,6 +35,7 @@
#include "atari/toolbar.h"
#include "atari/browser.h"
#include "atari/misc.h"
+#include "atari/encoding.h"
#include "cflib.h"
extern void * h_gem_rsrc;
@@ -229,7 +230,12 @@
}
/* No modifier keys: */
else {
- switch( ascii ) {
+ switch( ascii ) {
+
+ case NK_INS:
+ ik = KEY_PASTE;
+ break;
+
case NK_BS:
ik = KEY_DELETE_LEFT;
break;
11 years, 9 months
r13203 mono - in /trunk/netsurf/atari: browser.c toolbar.c treeview.c
by netsurf@semichrome.net
Author: mono
Date: Tue Nov 29 15:22:01 2011
New Revision: 13203
URL: http://source.netsurf-browser.org?rev=13203&view=rev
Log:
Check return value of plotter->lock()
Modified:
trunk/netsurf/atari/browser.c
trunk/netsurf/atari/toolbar.c
trunk/netsurf/atari/treeview.c
Modified: trunk/netsurf/atari/browser.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/browser.c?rev=13203...
==============================================================================
--- trunk/netsurf/atari/browser.c (original)
+++ trunk/netsurf/atari/browser.c Tue Nov 29 15:22:01 2011
@@ -69,8 +69,6 @@
static void browser_process_scroll( struct gui_window * gw, LGRECT bwrect );
static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff,
struct rect * area );
-static void __CDECL browser_evnt_resize( COMPONENT * c, long buff[8],
- void * data);
static void __CDECL browser_evnt_destroy( COMPONENT * c, long buff[8],
void * data);
static void __CDECL browser_evnt_redraw( COMPONENT * c, long buff[8],
@@ -123,9 +121,6 @@
mt_CompEvntDataAttach( &app, bnew->comp, WM_DESTROY,
browser_evnt_destroy, (void*)bnew
);
- mt_CompEvntDataAttach( &app, bnew->comp, WM_SIZED,
- browser_evnt_resize, (void*)gw
- );
/* Set the gui_window owner. */
/* it is an link to the netsurf window system */
@@ -208,12 +203,6 @@
}
}
-static void __CDECL browser_evnt_resize( COMPONENT * c, long buff[8], void * data)
-{
- /* Just a dummy to prevent second redraw (already handled within browser_win)*/
- printf("browser evnt resize");
- return;
-}
static void __CDECL browser_evnt_destroy( COMPONENT * c, long buff[8], void * data)
{
@@ -761,7 +750,8 @@
clip.x1 = bwrect.g_w;
clip.y1 = bwrect.g_h;
plotter->clip( plotter, &clip );
- plotter->lock(plotter);
+ if( plotter->lock(plotter) == 0 )
+ return;
if( b->scroll.required == true && b->bw->current_content != NULL) {
browser_process_scroll( gw, bwrect );
Modified: trunk/netsurf/atari/toolbar.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/toolbar.c?rev=13203...
==============================================================================
--- trunk/netsurf/atari/toolbar.c (original)
+++ trunk/netsurf/atari/toolbar.c Tue Nov 29 15:22:01 2011
@@ -415,7 +415,8 @@
plotter->resize(plotter, work.g_w, work.g_h );
plotter->move(plotter, work.g_x, work.g_y );
- plotter->lock( plotter );
+ if( plotter->lock( plotter ) == 0 )
+ return;
todo[0] = work.g_x;
todo[1] = work.g_y;
Modified: trunk/netsurf/atari/treeview.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/treeview.c?rev=1320...
==============================================================================
--- trunk/netsurf/atari/treeview.c (original)
+++ trunk/netsurf/atari/treeview.c Tue Nov 29 15:22:01 2011
@@ -294,7 +294,8 @@
plotter->resize(plotter, work.g_w, work.g_h);
plotter->move(plotter, work.g_x, work.g_y );
- plotter->lock( plotter );
+ if( plotter->lock( plotter ) == 0 )
+ return;
todo[0] = work.g_x;
todo[1] = work.g_y;
11 years, 9 months