summaryrefslogtreecommitdiff
path: root/src/kernel/vgatext.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-30 20:45:37 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-30 20:45:37 +0200
commit25228d8927af801667d4be2ea85ee517d1916fc7 (patch)
treeaa5932cfec8b95acdf978e459c9850d1b4a11678 /src/kernel/vgatext.h
parentc1bbac52d78b2e3e93fa43a5a7b3907073493216 (diff)
downloadabaos-25228d8927af801667d4be2ea85ee517d1916fc7.tar.gz
abaos-25228d8927af801667d4be2ea85ee517d1916fc7.tar.bz2
almost got a complete mode switch (vga graphics back to text) working
some cleanup in VGA driver code
Diffstat (limited to 'src/kernel/vgatext.h')
-rw-r--r--src/kernel/vgatext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/vgatext.h b/src/kernel/vgatext.h
index 499e3d8..c0bfbdc 100644
--- a/src/kernel/vgatext.h
+++ b/src/kernel/vgatext.h
@@ -42,6 +42,9 @@ typedef struct {
bool show_mouse_cursor;
int mouse_cursor_x;
int mouse_cursor_y;
+ // TODO: actually restore a proper, for now we
+ // remember the whole video area during mode switch
+ uint8_t buf[2*65535];
} vga_text_t;
void vga_text_init( vga_text_t *vga_text );
@@ -64,5 +67,7 @@ void vga_text_inverse_colors_at( vga_text_t *vga_text, const int x, const int y
void vga_text_show_mouse_cursor( vga_text_t *vga_text );
void vga_text_move_mouse_cursor( vga_text_t *vga_text, const int x, const int y );
void vga_text_hide_mouse_cursor( vga_text_t *vga_text );
+void vga_text_save( vga_text_t *vga_text );
+void vga_text_restore( vga_text_t *vga_text );
#endif /* VGA_TEXT_H */