summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index 81535a0..14e041e 100644
--- a/src/window.h
+++ b/src/window.h
@@ -8,8 +8,11 @@ struct window {
uint32_t width;
uint32_t height;
struct buffer *buffer;
+ struct buffer *prev_buffer;
};
void window_update_buffer(struct window *window, struct command_list *commands,
uint64_t frame_time, uint32_t *relline,
uint32_t *relcol);
+
+void window_set_buffer(struct window *window, struct buffer *buffer);