aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/dev/vesa.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-04-01 18:13:21 +0200
committerAlex Auvolat <alex@adnab.me>2018-04-01 18:13:21 +0200
commit0fcc7fcab8cc13fb9ab54feafbd46cf15b4871ea (patch)
tree08f78c690d5c5a40dad9e2d3c02b9b34e04a87ca /src/kernel/dev/vesa.c
parent6990cc1b54e6fd0a1a3ae71edb65ea53db3bd9a1 (diff)
downloadkogata-0fcc7fcab8cc13fb9ab54feafbd46cf15b4871ea.tar.gz
kogata-0fcc7fcab8cc13fb9ab54feafbd46cf15b4871ea.zip
Default VESA size parametrized in kernel config.h
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 4a35969..29aae98 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) {
+ if (mode_data[i].info.bpp == 32 && mode_data[i].info.width == DEFAULT_VESA_WIDTH && mode_data[i].info.height == DEFAULT_VESA_HEIGHT) {
if (vesa_set_mode(d, i)) break;
}
}