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
This commit is contained in:
parent
d3b2cb65ad
commit
92e0317c84
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user