Rev 1487 | Rev 1525 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1487 | Rev 1509 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | static inline keyfield_t *get_field_at(screenbuffer_t *scr, unsigned int x, unsigned int y) |
57 | static inline keyfield_t *get_field_at(screenbuffer_t *scr, unsigned int x, unsigned int y) |
58 | { |
58 | { |
59 | return scr->buffer + x + ((y + scr->top_line) % scr->size_y) * scr->size_x; |
59 | return scr->buffer + x + ((y + scr->top_line) % scr->size_y) * scr->size_x; |
60 | } |
60 | } |
61 | 61 | ||
- | 62 | static inline int style_same(style_t s1, style_t s2) |
|
- | 63 | { |
|
- | 64 | return s1.fg_color == s2.fg_color && s1.bg_color == s2.bg_color; |
|
- | 65 | } |
|
- | 66 | ||
62 | 67 | ||
63 | int screenbuffer_putchar(screenbuffer_t *scr, char c); |
68 | int screenbuffer_putchar(screenbuffer_t *scr, char c); |
64 | screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y); |
69 | screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y); |
65 | 70 | ||
66 | void screenbuffer_clear(screenbuffer_t *scr); |
71 | void screenbuffer_clear(screenbuffer_t *scr); |