From 02361309edbc5d2cbf1cd79e555ca6c6348b2920 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 10 Mar 2011 20:07:14 +0000 Subject: Remove gui_globals scale as no longer needed svn path=/trunk/netsurf/; revision=11962 --- amiga/gui.c | 4 ---- amiga/plotters.c | 1 - amiga/plotters.h | 1 - amiga/print.c | 1 - 4 files changed, 7 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index d4352a9f1..6df689e6e 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -564,7 +564,6 @@ static void gui_init2(int argc, char** argv) notalreadyrunning = ami_arexx_init(); /* Treeview init code ends up calling a font function which needs this */ - browserglob.scale = 1.0; glob = &browserglob; /**/ @@ -3135,7 +3134,6 @@ void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw, plot = amiplot; glob = &browserglob; - glob->scale = bw->scale; if(option_direct_render == false) { @@ -3313,7 +3311,6 @@ void ami_do_redraw(struct gui_window_2 *g) plot = amiplot; glob = &browserglob; - glob->scale = g->bw->scale; if(option_direct_render == false) { @@ -3809,7 +3806,6 @@ bool gui_window_frame_resize_start(struct gui_window *g) void gui_window_set_scale(struct gui_window *g, float scale) { - browserglob.scale = scale; g->shared->new_content = true; g->shared->redraw_required = true; } diff --git a/amiga/plotters.c b/amiga/plotters.c index d60037151..2db18a7a2 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -124,7 +124,6 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) if(!width) width = scrn->Width; if(!height) height = scrn->Width; - gg->scale = 1.0; gg->layerinfo = NewLayerInfo(); gg->areabuf = AllocVec(100,MEMF_PRIVATE | MEMF_CLEAR); gg->tmprasbuf = AllocVec(width*height,MEMF_PRIVATE | MEMF_CLEAR); diff --git a/amiga/plotters.h b/amiga/plotters.h index f9d95b765..c3f816dca 100755 --- a/amiga/plotters.h +++ b/amiga/plotters.h @@ -33,7 +33,6 @@ struct gui_globals APTR areabuf; APTR tmprasbuf; struct Rectangle rect; - float scale; #ifdef NS_AMIGA_CAIRO cairo_surface_t *surface; cairo_t *cr; diff --git a/amiga/print.c b/amiga/print.c index fe399be77..54e555960 100644 --- a/amiga/print.c +++ b/amiga/print.c @@ -464,7 +464,6 @@ bool ami_print_begin(struct print_settings *ps) ami_print_info.PED->ped_MaxXDots, ami_print_info.PED->ped_MaxYDots); - ami_print_info.gg->scale = ps->scale; ami_print_info.page = 0; return true; -- cgit v1.2.3