mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Fix clipping for non-HTML contents
svn path=/trunk/netsurf/; revision=10664
This commit is contained in:
parent
cb29fca203
commit
7bf81dbf35
16
amiga/gui.c
16
amiga/gui.c
@ -3062,8 +3062,8 @@ void ami_do_redraw_limits(struct gui_window *g, hlcache_handle *c,int x0, int y0
|
|||||||
|
|
||||||
content_redraw(c,
|
content_redraw(c,
|
||||||
-sx, -sy,
|
-sx, -sy,
|
||||||
width - sx,
|
width, // - sx,
|
||||||
height - sy,
|
height, // - sy,
|
||||||
(x0 - sx) * g->shared->bw->scale,
|
(x0 - sx) * g->shared->bw->scale,
|
||||||
(y0 - sy) * g->shared->bw->scale,
|
(y0 - sy) * g->shared->bw->scale,
|
||||||
(x1 - sx) * g->shared->bw->scale,
|
(x1 - sx) * g->shared->bw->scale,
|
||||||
@ -3218,8 +3218,8 @@ void ami_do_redraw(struct gui_window_2 *g)
|
|||||||
{
|
{
|
||||||
content_redraw(c, -hcurrent,
|
content_redraw(c, -hcurrent,
|
||||||
-vcurrent,
|
-vcurrent,
|
||||||
width - hcurrent,
|
width,
|
||||||
height - vcurrent,
|
height,
|
||||||
0,0,width,
|
0,0,width,
|
||||||
height,
|
height,
|
||||||
g->bw->scale,0xFFFFFF);
|
g->bw->scale,0xFFFFFF);
|
||||||
@ -3228,10 +3228,10 @@ void ami_do_redraw(struct gui_window_2 *g)
|
|||||||
{
|
{
|
||||||
content_redraw(c, -hcurrent /* * g->bw->scale */,
|
content_redraw(c, -hcurrent /* * g->bw->scale */,
|
||||||
-vcurrent /* * g->bw->scale */,
|
-vcurrent /* * g->bw->scale */,
|
||||||
(width / g->bw->scale) - hcurrent,
|
(width / g->bw->scale), //- hcurrent,
|
||||||
(height / g->bw->scale) - vcurrent,
|
(height / g->bw->scale), // - vcurrent,
|
||||||
0,0, content_get_width(c) /* * g->bw->scale */,
|
hcurrent, vcurrent, width + hcurrent /* * g->bw->scale */,
|
||||||
content_get_height(c) /* * g->bw->scale */,
|
height + vcurrent /* * g->bw->scale */,
|
||||||
g->bw->scale,0xFFFFFF);
|
g->bw->scale,0xFFFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user