Snap terminal size to an integer number of character cells.

This commit is contained in:
Kristian Høgsberg 2008-12-08 12:59:37 -05:00
parent 17809b1e43
commit 1584c57edc
4 changed files with 34 additions and 6 deletions

View file

@ -32,7 +32,7 @@ struct rectangle {
int32_t height;
};
typedef void (*window_resize_handler_t)(struct window *window, int32_t width, int32_t height, void *data);
typedef void (*window_resize_handler_t)(struct window *window, struct rectangle *rectangle, void *data);
typedef void (*window_frame_handler_t)(struct window *window, uint32_t frame, uint32_t timestamp, void *data);
typedef void (*window_acknowledge_handler_t)(struct window *window, uint32_t key, void *data);
typedef void (*window_key_handler_t)(struct window *window, uint32_t key, uint32_t state, void *data);