diff options
author | Marvin Borner | 2019-10-02 20:01:17 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-02 20:01:17 +0200 |
commit | 3238ced93283a167675f20244ec9fd6310eb8002 (patch) | |
tree | 288078ca30e9e4b5d5ba9a178315cb5ee9f6a2d8 /src/kernel/graphics/vga.c | |
parent | 682c47a98844ffec3f3129160e9cdb98ba129989 (diff) |
Finally fixed VESA auto resolution finder
This was quite hard and strange but it works now!
Diffstat (limited to 'src/kernel/graphics/vga.c')
-rw-r--r-- | src/kernel/graphics/vga.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/graphics/vga.c b/src/kernel/graphics/vga.c index 8fde84f..cf1888b 100644 --- a/src/kernel/graphics/vga.c +++ b/src/kernel/graphics/vga.c @@ -148,6 +148,12 @@ void terminal_write_string(const char *data) { terminal_write(data, strlen(data)); } +void terminal_write_number(int data) { + char converted[128]; + itoa(data, converted, 10); + terminal_write(converted, strlen(converted)); +} + void terminal_write_line(const char *data) { terminal_column = 0; terminal_write_string(data); |