aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-21 12:29:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-21 12:29:15 +0000
commita50be28b9d2a4dd0e9b06ccb396a9a77247d60a5 (patch)
treeb5cadd9ff9077462d2910167f95f638688a1ca64 /terminal.h
parentrender: break up grid_render() (diff)
grid: implement DAMAGE_SCROLL
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h11
1 files changed, 9 insertions, 2 deletions
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;
};
};