From 4fa0f5d292add0d53554eb02351a78b18af8985d Mon Sep 17 00:00:00 2001 From: bellard Date: Fri, 6 Feb 2004 19:47:52 +0000 Subject: added bochs VBE support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@602 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/vga_template.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'hw/vga_template.h') diff --git a/hw/vga_template.h b/hw/vga_template.h index cc4df95e35..810b4b128b 100644 --- a/hw/vga_template.h +++ b/hw/vga_template.h @@ -390,6 +390,26 @@ static void glue(vga_draw_line16_, DEPTH)(VGAState *s1, uint8_t *d, #endif } +/* + * 24 bit color + */ +static void glue(vga_draw_line24_, DEPTH)(VGAState *s1, uint8_t *d, + const uint8_t *s, int width) +{ + int w; + uint32_t r, g, b; + + w = width; + do { + b = s[0]; + g = s[1]; + r = s[2]; + ((PIXEL_TYPE *)d)[0] = glue(rgb_to_pixel, DEPTH)(r, g, b); + s += 3; + d += BPP; + } while (--w != 0); +} + /* * 32 bit color */ -- cgit v1.2.1