version 1.149, 2019/03/18 20:53:33 |
version 1.150, 2019/04/03 06:43:04 |
|
|
|
|
/* |
/* |
* Copy from another screen but without the selection stuff. Also assumes the |
* Copy from another screen but without the selection stuff. Also assumes the |
* target region is already big enough and already cleared. |
* target region is already big enough. |
*/ |
*/ |
void |
void |
screen_write_fast_copy(struct screen_write_ctx *ctx, struct screen *src, |
screen_write_fast_copy(struct screen_write_ctx *ctx, struct screen *src, |
|
|
grid_get_cell(gd, xx, yy, &gc); |
grid_get_cell(gd, xx, yy, &gc); |
if (xx + gc.data.width > px + nx) |
if (xx + gc.data.width > px + nx) |
break; |
break; |
if (!grid_cells_equal(&gc, &grid_default_cell)) |
grid_view_set_cell(ctx->s->grid, cx, cy, &gc); |
grid_view_set_cell(ctx->s->grid, cx, cy, &gc); |
|
cx++; |
cx++; |
} |
} |
cy++; |
cy++; |