aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/dev/vesa.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2017-05-08 16:43:31 +0200
committerAlex Auvolat <alex@adnab.me>2017-05-08 16:43:31 +0200
commit287a579f65e6e5e3c4610cbf134123691ee3e64c (patch)
tree1774e1ec804fa712d3d87547ef5c7e45998b2f12 /src/kernel/dev/vesa.c
parente72e5e87497744410fb62843ef852d26bf5277d2 (diff)
downloadkogata-287a579f65e6e5e3c4610cbf134123691ee3e64c.tar.gz
kogata-287a579f65e6e5e3c4610cbf134123691ee3e64c.zip
Implement tk.box
Diffstat (limited to 'src/kernel/dev/vesa.c')
-rw-r--r--src/kernel/dev/vesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/dev/vesa.c b/src/kernel/dev/vesa.c
index de7e666..4a35969 100644
--- a/src/kernel/dev/vesa.c
+++ b/src/kernel/dev/vesa.c
@@ -343,7 +343,7 @@ void vesa_init_driver(fs_t *iofs, vesa_mode_t *mode_data, int mode_data_c) {
// Lookup a valid mode and set it
for (int i = 0; i < mode_data_c; i++) {
- if (mode_data[i].info.bpp == 32 && mode_data[i].info.width <= 800 && mode_data[i].info.width >= 600) {
+ if (mode_data[i].info.bpp == 32 && mode_data[i].info.width == 800) {
if (vesa_set_mode(d, i)) break;
}
}