mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
grid: implement DAMAGE_SCROLL
This commit is contained in:
parent
0ddd96de0d
commit
a50be28b9d
5 changed files with 142 additions and 15 deletions
11
terminal.h
11
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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue