summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-09-19 12:58:25 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-09-19 12:58:25 +0000
commit6124966ab9f8bdbba39d279c1f7e1cbd6c04af2d (patch)
treec4a572d24a780c64e8378525ab907529f6147099 /amiga
parentf3bf62bdbb9051a399d12039f4c73f07cf6cd9af (diff)
downloadnetsurf-6124966ab9f8bdbba39d279c1f7e1cbd6c04af2d.tar.gz
netsurf-6124966ab9f8bdbba39d279c1f7e1cbd6c04af2d.tar.bz2
Revert previous change
svn path=/trunk/netsurf/; revision=10800
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c6
1 files changed, 5 insertions, 1 deletions
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);