Remove gui_globals scale as no longer needed

svn path=/trunk/netsurf/; revision=11962
This commit is contained in:
Chris Young 2011-03-10 20:07:14 +00:00
parent d12ce6b075
commit 02361309ed
4 changed files with 0 additions and 7 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;

View File

@ -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;