From 6124966ab9f8bdbba39d279c1f7e1cbd6c04af2d Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 19 Sep 2010 12:58:25 +0000 Subject: Revert previous change svn path=/trunk/netsurf/; revision=10800 --- amiga/gui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index cb1aac6c3..fa935b22c 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3623,7 +3623,10 @@ void gui_window_place_caret(struct gui_window *g, int x, int y, int height) if(((x-xs) <= 0) || ((x-xs+2) >= (bbox->Width)) || ((y-ys) <= 0) || ((y-ys) >= (bbox->Height))) return; - BltBitMap(g->shared->win->RPort->BitMap,bbox->Left+x-xs,bbox->Top+y-ys,browserglob.bm,x-xs,y-ys,2+1,height+1,0x0C0); +/* Backup the area under the cursor - args need checking + BltBitMap(g->shared->win->RPort->BitMap, bbox->Left+x-xs, bbox->Top+y-ys, + browserglob.bm, x-xs, y-ys,2+1, height+1, 0x0C0, 0xff, NULL); +*/ SetDrMd(g->shared->win->RPort,COMPLEMENT); @@ -3645,6 +3648,7 @@ void gui_window_remove_caret(struct gui_window *g) int xs,ys; if(!g) return; + if(g->c_h == 0) return; if(option_kiosk_mode == false) OffMenu(g->shared->win, AMI_MENU_PASTE); -- cgit v1.2.3