summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-28 15:43:12 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-28 15:43:12 +0000
commitb180dd1a1198375765b30d0ddc3b773d432c5f99 (patch)
treede97a27cf14afdb641fcc587e9e840e56284c070 /amiga/gui.c
parent2bf6bd72b8798d8363d451430cdb5439bb560d5a (diff)
downloadnetsurf-b180dd1a1198375765b30d0ddc3b773d432c5f99.tar.gz
netsurf-b180dd1a1198375765b30d0ddc3b773d432c5f99.tar.bz2
Stop cursor drawing off the page
Implement gui_window_save_as_link Fix warnings svn path=/trunk/netsurf/; revision=6970
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 0339f9fdc..80912a861 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2185,6 +2185,7 @@ DebugPrintF("%ld %ld calc\n",(y1-y0)+(yoffset+y0-vcurrent),(y0-(int)vcurrent));
BltBitMapRastPort(glob.bm,x0-hcurrent,y0-vcurrent,g->shared->win->RPort,xoffset+x0-hcurrent,yoffset+y0-vcurrent,x1-x0,y1-y0,0x0C0);
+/*
DebugPrintF("%ld %ld %ld %ld draw area\n%ld %ld %ld %ld clip rect\n%ld %ld bitmap src\n%ld %ld %ld %ld bitmap dest\n\n",-hcurrent,-vcurrent,width-hcurrent,height-vcurrent,
(ULONG)floorf((x0 *
g->shared->bw->scale)-(int)hcurrent),
@@ -2192,7 +2193,7 @@ DebugPrintF("%ld %ld calc\n",(y1-y0)+(yoffset+y0-vcurrent),(y0-(int)vcurrent));
g->shared->bw->scale)-(int)vcurrent),
(ULONG)x1-hcurrent,
(ULONG)y1-vcurrent,x0-hcurrent,y0-vcurrent,xoffset+x0-hcurrent,yoffset+y0-vcurrent,x1-x0,y1-y0);
-
+*/
}
void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1)
@@ -2706,7 +2707,9 @@ void gui_window_place_caret(struct gui_window *g, int x, int y, int height)
SetAPen(g->shared->win->RPort,3);
-// if(((x-xs) < bbox->Left) || ((x-xs) > (bbox->Left+bbox->Width)) || ((y-ys) < bbox->Top) || ((y-ys) > (bbox->Top+bbox->Height))) return;
+ if((y-ys+height) > (bbox->Height)) height = bbox->Height-y+ys;
+
+ if(((x-xs) <= 0) || ((x-xs+2) >= (bbox->Width)) || ((y-ys) <= 0) || ((y-ys) >= (bbox->Height))) return;
RectFill(g->shared->win->RPort,x+bbox->Left-xs,y+bbox->Top-ys,x+bbox->Left+2-xs,y+bbox->Top+height-ys);
@@ -2752,10 +2755,6 @@ bool gui_window_frame_resize_start(struct gui_window *g)
printf("resize frame\n");
}
-void gui_window_save_as_link(struct gui_window *g, struct content *c)
-{
-}
-
void gui_window_set_scale(struct gui_window *g, float scale)
{
printf("set scale\n");