Fix offset to allow tiled rendering

This commit is contained in:
Chris Young 2020-05-22 23:26:11 +01:00
parent 413c3803c5
commit 505217a8e7
1 changed files with 2 additions and 2 deletions

View File

@ -635,7 +635,7 @@ nserror page_info_redraw(
.x1 = clip->x1 + x,
.y1 = clip->y1 + y,
};
int cur_y = 0;
int cur_y = y;
nserror err;
/* Start knockout rendering if it's available for this plotter. */
@ -653,7 +653,7 @@ nserror page_info_redraw(
cur_y += pi->window_padding;
for (unsigned i = 0; i < PI_ENTRY__COUNT; i++) {
const struct page_info_entry *entry = pi->entries + i;
int cur_x = pi->window_padding;
int cur_x = x + pi->window_padding;
if (page_info__hide_entry(i, pi->scheme)) {
continue;