From 92e0317c847052d29fc3b3ca506c538e60c150b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Nov 2004 02:23:42 +0000 Subject: [PATCH] Disabled VESA palette changing for now; it does not seem to work correctly or I am messing things up (it will now use good old VGA palette programming). This fixes the strange colors on my system, should investigate on how to properly use the VESA stuff here. Debug output now goes through dprintf(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9751 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/bios_ia32/video.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kernel/boot/platform/bios_ia32/video.cpp b/src/kernel/boot/platform/bios_ia32/video.cpp index f159d41e1b..120cbe8768 100644 --- a/src/kernel/boot/platform/bios_ia32/video.cpp +++ b/src/kernel/boot/platform/bios_ia32/video.cpp @@ -23,7 +23,7 @@ //#define TRACE_VIDEO #ifdef TRACE_VIDEO -# define TRACE(x) printf x +# define TRACE(x) dprintf x #else # define TRACE(x) ; #endif @@ -227,7 +227,7 @@ vesa_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) if (gKernelArgs.fb.bit_depth = modeInfo.bits_per_pixel != 8) return B_BAD_TYPE; #endif - +#if 0 struct bios_regs regs; regs.eax = 0x4f09; regs.ebx = 0; @@ -238,11 +238,13 @@ vesa_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) call_bios(0x10, ®s); if ((regs.eax & 0xffff) != 0x4f) { +#endif // the VESA call does not work, just try good old VGA mechanism vga_set_palette(palette, firstIndex, numEntries); +#if 0 return B_ERROR; } - +#endif return B_OK; }