From 80e30f693c925841b5874063ca1d8aab2c42d231 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 27 Nov 2007 19:32:15 +0000 Subject: Minor tweaks/missed bits. --- screen.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 4f6824e8..4318cdf5 100644 --- a/screen.c +++ b/screen.c @@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.50 2007-11-27 19:23:34 nicm Exp $ */ +/* $Id: screen.c,v 1.51 2007-11-27 19:32:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -323,6 +323,14 @@ screen_draw_start(struct screen_draw_ctx *ctx, struct screen *s, ctx->write(ctx->data, TTY_CURSOROFF); } +/* Set offset. */ +void +screen_draw_set_offset(struct screen_draw_ctx *ctx, u_int ox, u_int oy) +{ + ctx->ox = ox; + ctx->oy = oy; +} + /* Set selection. */ void screen_draw_set_selection(struct screen_draw_ctx *ctx, -- cgit