mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-14 21:44:48 +03:00
random changes
svn path=/trunk/netsurf/; revision=13474
This commit is contained in:
parent
2951735e2f
commit
b7f7293802
15
amiga/gui.c
15
amiga/gui.c
@ -3215,10 +3215,10 @@ void gui_window_set_title(struct gui_window *g, const char *title)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ami_do_redraw_tiled(struct gui_window_2 *gwin,
|
void ami_do_redraw_tiled(struct gui_window_2 *gwin,
|
||||||
ULONG left, ULONG top, ULONG width, ULONG height,
|
int left, int top, int width, int height,
|
||||||
ULONG sx, ULONG sy, struct IBox *bbox, struct redraw_context *ctx)
|
int sx, int sy, struct IBox *bbox, struct redraw_context *ctx)
|
||||||
{
|
{
|
||||||
ULONG x, y;
|
int x, y;
|
||||||
struct rect clip;
|
struct rect clip;
|
||||||
|
|
||||||
if(top < 0) {
|
if(top < 0) {
|
||||||
@ -3249,6 +3249,8 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin,
|
|||||||
if(width <= 0) return;
|
if(width <= 0) return;
|
||||||
if(height <= 0) return;
|
if(height <= 0) return;
|
||||||
|
|
||||||
|
//printf("%ld %ld %ld %ld\n",left, top, width, height);
|
||||||
|
|
||||||
for(y = top; y < (top + height); y += option_redraw_tile_size) {
|
for(y = top; y < (top + height); y += option_redraw_tile_size) {
|
||||||
clip.y0 = 0;
|
clip.y0 = 0;
|
||||||
clip.y1 = option_redraw_tile_size;
|
clip.y1 = option_redraw_tile_size;
|
||||||
@ -3259,7 +3261,12 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin,
|
|||||||
clip.x1 = option_redraw_tile_size;
|
clip.x1 = option_redraw_tile_size;
|
||||||
if(((left + width) - x) < option_redraw_tile_size) clip.x1 = (left + width) - x;
|
if(((left + width) - x) < option_redraw_tile_size) clip.x1 = (left + width) - x;
|
||||||
|
|
||||||
if(browser_window_redraw(gwin->bw, clip.x0 - (x / gwin->bw->scale), clip.y0 - (y / gwin->bw->scale), &clip, ctx))
|
//printf("%ld %ld -> %ld %ld\n",clip.x0 - (int)(x / gwin->bw->scale), clip.y0 - (int)(y / gwin->bw->scale), clip.x1, clip.y1);
|
||||||
|
|
||||||
|
if(browser_window_redraw(gwin->bw,
|
||||||
|
clip.x0 - (int)(x / gwin->bw->scale),
|
||||||
|
clip.y0 - (int)(y / gwin->bw->scale),
|
||||||
|
&clip, ctx))
|
||||||
{
|
{
|
||||||
ami_clearclipreg(&browserglob);
|
ami_clearclipreg(&browserglob);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user