From 138d0754c9dff39c853717fb1bb4b1c3ff416d9b Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 29 Aug 2009 14:24:47 +0000 Subject: Font scaling - scaling now works for printing, need 2nd attempt at implementing it for browsing. svn path=/trunk/netsurf/; revision=9496 --- amiga/gui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index ca9fd3f29..28c5589f4 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2403,7 +2403,9 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0 if((x1-x0)+(xoffset+x0-sx)>(width)) x1 = (width-(x0-sx)+x0); if((y1-y0)+(yoffset+y0-sy)>(height)) y1 = (height-(y0-sy)+y0); - content_redraw(c, + glob->scale = g->shared->bw->scale; + + content_redraw(c, -sx,-sy,width-sx,height-sy, floorf((x0 * g->shared->bw->scale)-sx), @@ -2541,6 +2543,7 @@ void ami_do_redraw(struct gui_window_2 *g) else { ami_clg(0xffffff); + glob->scale = g->bw->scale; if(c->type == CONTENT_HTML) { -- cgit v1.2.3