diff options
author | Marvin Borner | 2019-10-13 12:45:13 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-13 12:49:14 +0200 |
commit | 58804851fc49f6db1c87f791d39779766108efb0 (patch) | |
tree | e6d03188c0c252bca65442f4c6a3a980de2140d8 /src/kernel/graphics/vesa.c | |
parent | 0e6ede5c596527e69e22e525b5dc5278440b27b2 (diff) |
Improved code quality
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r-- | src/kernel/graphics/vesa.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 03c189f..cc9dd97 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -67,10 +67,8 @@ struct vbe_mode_info *vbe_set_mode(unsigned short mode) { return vbe_info; } else { switch_to_vga(); + return ((void *) 0); } - - struct vbe_mode_info vbe_info; - return &vbe_info; } void set_optimal_resolution() { @@ -83,7 +81,7 @@ void set_optimal_resolution() { regs16_t regs; regs.ax = 0x4F00; regs.es = 0; - regs.di = info; + regs.di = (unsigned short) info; int32(0x10, ®s); if (regs.ax != 0x004F || strcmp(info->signature, "VESA") != 0) { |