diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-09-13 13:37:00 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-09-13 13:37:00 -0700 |
commit | ea13d36710bcb5a4502fe2281528665ee5ac61cd (patch) | |
tree | cc9dc6b388910cf03d8e47173cd5f561c4ed46b0 /com32/lib/sys/vesa/video.h | |
parent | 229a3a08016d601585a79856d8bae6d59852bfa4 (diff) | |
download | syslinux-ea13d36710bcb5a4502fe2281528665ee5ac61cd.tar.gz syslinux-ea13d36710bcb5a4502fe2281528665ee5ac61cd.tar.xz syslinux-ea13d36710bcb5a4502fe2281528665ee5ac61cd.zip |
Beginnings of supporting multiple pixel formats
Diffstat (limited to 'com32/lib/sys/vesa/video.h')
-rw-r--r-- | com32/lib/sys/vesa/video.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/com32/lib/sys/vesa/video.h b/com32/lib/sys/vesa/video.h index 3bf93e39..ab3c765a 100644 --- a/com32/lib/sys/vesa/video.h +++ b/com32/lib/sys/vesa/video.h @@ -52,9 +52,10 @@ struct vesa_char { }; /* Pixel formats in order of decreasing preference; PXF_NONE should be last */ +/* BGR24 is preferred over BGRA32 since the I/O overhead is smaller. */ enum vesa_pixel_format { - PXF_BGRA32, /* 32-bit BGRA */ PXF_BGR24, /* 24-bit BGR */ + PXF_BGRA32, /* 32-bit BGRA */ PXF_LE_RGB16_565, /* 16-bit littleendian 5:6:5 RGB */ PXF_NONE }; @@ -62,6 +63,7 @@ enum vesa_pixel_format { extern struct vesa_char *__vesacon_text_display; extern int __vesacon_font_height, __vesacon_text_rows; +extern enum vesa_pixel_format __vesacon_pixel_format; extern uint8_t __vesacon_graphics_font[FONT_MAX_CHARS][FONT_MAX_HEIGHT]; extern uint32_t __vesacon_background[VIDEO_Y_SIZE][VIDEO_X_SIZE]; extern uint32_t __vesacon_shadowfb[VIDEO_Y_SIZE][VIDEO_X_SIZE]; |