aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
authorMarvin Borner2020-01-04 23:30:28 +0100
committerMarvin Borner2020-01-04 23:30:28 +0100
commit527d8bfeffa41086ad4e0c257b27e8c916fd514c (patch)
treed5d94bc43c8d8bd091ec5b3296b13e4c640290ce /src/kernel/graphics
parente015aeacf14c1ec50ca14dda01c760dc16b26506 (diff)
Removed hardcoded line numbers
Wasn't that hard after all, eh?
Diffstat (limited to 'src/kernel/graphics')
-rw-r--r--src/kernel/graphics/font.c1
-rw-r--r--src/kernel/graphics/vesa.c10
2 files changed, 6 insertions, 5 deletions
diff --git a/src/kernel/graphics/font.c b/src/kernel/graphics/font.c
index 2a16d2f..49bcd8a 100644
--- a/src/kernel/graphics/font.c
+++ b/src/kernel/graphics/font.c
@@ -24,4 +24,5 @@ void font_install()
ATAPI_granular_read(1 + (font_e->length / 2048), font_e->lba, (uint8_t *) font);
kfree(font_e);
}
+ vga_log("Successfully loaded font");
} \ No newline at end of file
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c
index c06bef6..2b8dfef 100644
--- a/src/kernel/graphics/vesa.c
+++ b/src/kernel/graphics/vesa.c
@@ -101,8 +101,8 @@ struct vbe_mode_info *vbe_get_mode_info(uint16_t mode)
void set_optimal_resolution()
{
- vga_log("Switching to graphics mode", 8);
- vga_log("Trying to detect available modes", 9);
+ vga_log("Switching to graphics mode");
+ vga_log("Trying to detect available modes");
uint16_t *video_modes = vbe_get_modes();
uint16_t highest = 0;
@@ -135,8 +135,8 @@ void set_optimal_resolution()
if (highest == 0) {
serial_printf("Mode detection failed!\nTrying common modes...");
- vga_log("Mode detection failed!", 11);
- vga_log("Trying common modes...", 12);
+ vga_log("Mode detection failed!");
+ vga_log("Trying common modes...");
struct vbe_mode_info *mode_info;
int modes[] = {
322, 287, 286, 285, 284, // 1600x1200
@@ -175,7 +175,7 @@ void set_optimal_resolution()
// Everything else failed :(
if (highest == 0)
switch_to_vga();
- } else vga_log("Mode detection succeeded", 11);
+ } else vga_log("Mode detection succeeded");
vbe_set_mode(highest);