rem: if (gKernelArgs.fb.bit_depth = modeInfo.bits_per_pixel != 8)
add: if (gKernelArgs.frame_buffer.depth != 8)
context: vesa_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries){#if 0	// is this an 8 bit indexed color mode?	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;	regs.ecx = numEntries;	regs.edx = firstIndex;	regs.es = (addr_t)palette >> 4;	regs.edi = (addr_t)palette & 0xf;	call_bios(0x10, &regs);	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;}