r13505 chris_y - in /trunk/netsurf/amiga: dist/NetSurf.guide gui.c

netsurf at semichrome.net netsurf at semichrome.net
Sat Mar 3 15:50:05 GMT 2012


Author: chris_y
Date: Sat Mar  3 09:50:05 2012
New Revision: 13505

URL: http://source.netsurf-browser.org?rev=13505&view=rev
Log:
Fix scaled fast scrolling.  Curiously this has solved the form select menu
problem :S

Modified:
    trunk/netsurf/amiga/dist/NetSurf.guide
    trunk/netsurf/amiga/gui.c

Modified: trunk/netsurf/amiga/dist/NetSurf.guide
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/dist/NetSurf.guide?rev=13505&r1=13504&r2=13505&view=diff
==============================================================================
--- trunk/netsurf/amiga/dist/NetSurf.guide (original)
+++ trunk/netsurf/amiga/dist/NetSurf.guide Sat Mar  3 09:50:05 2012
@@ -45,7 +45,7 @@
 @{b}cairo_renderer@{ub} Set rendering engine (SObjs version only). 0 = graphics.library, 1 = Cairo/graphics.library mixed (recommended), 2 = Full Cairo.
 @{b}monitor_aspect_x@{ub}/@{b}monitor_aspect_y@{ub} Correct aspect ratio for displays (default of 0 means "assume square pixels").
 @{b}screen_compositing@{ub} Use compositing on NetSurf's own screen. 0=disable, 1=enable, 2=default
-@{b}redraw_tile_size@{ub} Specify the size of the off-screen bitmap. Higher will speed up redraws at the expense of memory. 0 disables tiling (will use a bitmap at least the size of the screen NetSurf is running on - not recommended)
+@{b}redraw_tile_size_x@{ub}/@{b}redraw_tile_size_y@{ub} Specify the size of the off-screen bitmap. Higher will speed up redraws at the expense of memory. 0 disables tiling (will use a bitmap at least the size of the screen NetSurf is running on)
 
 @{b}url_file@{ub} Path to URL database file
 @{b}hotlist_file@{ub} Path to Hotlist file
@@ -265,7 +265,7 @@
 
 @{lindent 2}* In @{"Options" link Options}, set cairo_renderer:1@{lindent}
 
-@{lindent 2}* In @{"Options" link Options}, increase redraw_tile_size. (increasing this value uses more graphics mem)@{lindent}
+@{lindent 2}* In @{"Options" link Options}, increase redraw_tile_size_x/y (increasing this value uses more graphics mem)@{lindent}
 @endnode
 
 @node contact "Credits"

Modified: trunk/netsurf/amiga/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=13505&r1=13504&r2=13505&view=diff
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Sat Mar  3 09:50:05 2012
@@ -3400,7 +3400,7 @@
 
  		if(g->new_content) g->redraw_scroll = false;
 
-		if(g->bw->scale != 1.0) g->redraw_scroll = false;
+		//if(g->bw->scale != 1.0) g->redraw_scroll = false;
 	}
 
 	if(g->redraw_scroll)
@@ -3416,30 +3416,30 @@
 		if(vcurrent>oldv)
 		{
 			ami_do_redraw_limits(g->bw->window, g->bw,
-					hcurrent / g->bw->scale, (height + oldv - 1) / g->bw->scale,
-					(hcurrent + width) / g->bw->scale,
-					(vcurrent + height + 1) / g->bw->scale);
+					hcurrent, (height / g->bw->scale) + oldv - 1,
+					hcurrent + (width / g->bw->scale),
+					vcurrent + (height / g->bw->scale) + 1);
 		}
 		else if(vcurrent<oldv)
 		{
 			ami_do_redraw_limits(g->bw->window, g->bw,
-					hcurrent / g->bw->scale, vcurrent / g->bw->scale,
-					(hcurrent + width) / g->bw->scale,
-					oldv / g->bw->scale);
+					hcurrent, vcurrent,
+					hcurrent + (width / g->bw->scale),
+					oldv);
 		}
 
 		if(hcurrent>oldh)
 		{
 			ami_do_redraw_limits(g->bw->window, g->bw,
-					(width + oldh) / g->bw->scale, vcurrent / g->bw->scale,
-					(hcurrent + width) / g->bw->scale,
-					(vcurrent + height) / g->bw->scale);
+					(width / g->bw->scale) + oldh , vcurrent,
+					hcurrent + (width / g->bw->scale),
+					vcurrent + (height / g->bw->scale));
 		}
 		else if(hcurrent<oldh)
 		{
 			ami_do_redraw_limits(g->bw->window, g->bw,
-					hcurrent / g->bw->scale, vcurrent / g->bw->scale,
-					oldh / g->bw->scale, (vcurrent + height) / g->bw->scale);
+					hcurrent, vcurrent,
+					oldh, vcurrent + (height / g->bw->scale));
 		}
 	}
 	else




More information about the netsurf-commits mailing list