From 8cd812c17226d0ec1fc63732017c0075d8de18d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 May 2005 12:05:31 +0000 Subject: [PATCH] Forgot to uncomment this line: the "depth" argument of the vesa file is now also evaluated, so that you can specify something different than 8 bit in there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12840 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/bios_ia32/video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/boot/platform/bios_ia32/video.cpp b/src/system/boot/platform/bios_ia32/video.cpp index b34ef4b0f9..343c084bcf 100644 --- a/src/system/boot/platform/bios_ia32/video.cpp +++ b/src/system/boot/platform/bios_ia32/video.cpp @@ -75,7 +75,7 @@ vga_enable_bright_background_colors(void) } -// #pragma mark - +// #pragma mark - vesa // VESA functions @@ -379,12 +379,12 @@ get_mode_from_settings(void) for (int32 i = 0; i < settings->parameter_count; i++) { driver_parameter ¶meter = settings->parameters[i]; - + if (!strcmp(parameter.name, "mode") && parameter.value_count > 2) { // parameter found, now get its values int32 width = strtol(parameter.values[0], NULL, 0); int32 height = strtol(parameter.values[1], NULL, 0); - int32 depth = 8; //strtol(parameter->values[2], NULL, 0); + int32 depth = strtol(parameter.values[2], NULL, 0); // search mode that fits