From 3238ced93283a167675f20244ec9fd6310eb8002 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 2 Oct 2019 20:01:17 +0200 Subject: Finally fixed VESA auto resolution finder This was quite hard and strange but it works now! --- src/kernel/graphics/vga.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/graphics/vga.c') 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); -- cgit v1.2.3