summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-09-19 12:38:23 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-09-19 12:38:23 +0000
commitf3bf62bdbb9051a399d12039f4c73f07cf6cd9af (patch)
tree5f0042f175d3a5a08d524138d1ec5222bbbd89d8 /amiga
parent6e161d822c4c7b31da46a5bd540d7803f36cb4dd (diff)
downloadnetsurf-f3bf62bdbb9051a399d12039f4c73f07cf6cd9af.tar.gz
netsurf-f3bf62bdbb9051a399d12039f4c73f07cf6cd9af.tar.bz2
Try to avoid corruption when moving cursor around in text boxes
svn path=/trunk/netsurf/; revision=10799
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 03e8244f2..cb1aac6c3 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3623,6 +3623,8 @@ 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);
+
SetDrMd(g->shared->win->RPort,COMPLEMENT);
RectFill(g->shared->win->RPort,x+bbox->Left-xs,y+bbox->Top-ys,x+bbox->Left+2-xs,y+bbox->Top+height-ys);
@@ -3633,7 +3635,8 @@ void gui_window_place_caret(struct gui_window *g, int x, int y, int height)
g->c_y = y;
g->c_h = height;
- OnMenu(g->shared->win, AMI_MENU_PASTE);
+ if(option_kiosk_mode == false)
+ OnMenu(g->shared->win, AMI_MENU_PASTE);
}
void gui_window_remove_caret(struct gui_window *g)
@@ -3643,7 +3646,8 @@ void gui_window_remove_caret(struct gui_window *g)
if(!g) return;
- OffMenu(g->shared->win, AMI_MENU_PASTE);
+ if(option_kiosk_mode == false)
+ OffMenu(g->shared->win, AMI_MENU_PASTE);
GetAttr(SPACE_AreaBox, g->shared->objects[GID_BROWSER], (ULONG *)&bbox);
ami_get_hscroll_pos(g->shared, (ULONG *)&xs);