From a50be28b9d2a4dd0e9b06ccb396a9a77247d60a5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 21 Jun 2019 14:29:15 +0200 Subject: grid: implement DAMAGE_SCROLL --- terminal.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index ad40dc3e..7a033330 100644 --- a/terminal.h +++ b/terminal.h @@ -32,11 +32,18 @@ enum damage_type {DAMAGE_UPDATE, DAMAGE_ERASE, DAMAGE_SCROLL}; struct damage { enum damage_type type; union { + /* DAMAGE_UPDATE, DAMAGE_ERASE */ struct { int start; int length; - } range; /* DAMAGE_UPDATE, DAMAGE_ERASE */ - int lines; /* DAMAGE_SCROLL */ + } range; + + /* DAMAGE_SCROLL */ + struct { + int top_margin; + int bottom_margin; + int lines; + } scroll; }; }; -- cgit v1.3