diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-21 12:29:15 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-21 12:29:15 +0000 |
| commit | a50be28b9d2a4dd0e9b06ccb396a9a77247d60a5 (patch) | |
| tree | b5cadd9ff9077462d2910167f95f638688a1ca64 /terminal.h | |
| parent | render: break up grid_render() (diff) | |
grid: implement DAMAGE_SCROLL
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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; }; }; |
