* Moved VGA planar mode blitting into the VESA kernel driver.

* In grayscale mode, the AccelerantHWInterface now sets the palette correctly.
* HWInterface now has a fVGADevice set by AccelerantHWInterface which will be used
  to talk to the VESA driver.
* Completed planar blitting for all 4 planes; we now have a perfect 16 color
  grayscale mode when you choose "Standard VGA mode" in the boot loader with
  an unsupported graphics card (such as in Qemu).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19567 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-12-19 22:57:56 +00:00
parent 30b0fe7561
commit 0c6f77951e
12 changed files with 255 additions and 46 deletions
+18
View File
@@ -47,6 +47,24 @@ struct vesa_info {
enum {
VESA_GET_PRIVATE_DATA = B_DEVICE_OP_CODES_END + 1,
VESA_GET_DEVICE_NAME,
VGA_SET_INDEXED_COLORS,
VGA_PLANAR_BLIT,
};
struct vga_set_indexed_colors_args {
uint8 first;
uint16 count;
uint8 *colors;
};
struct vga_planar_blit_args {
uint8 *source;
int32 source_bytes_per_row;
int32 left;
int32 top;
int32 right;
int32 bottom;
};
//----------------------------------------------------------