diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-02-06 19:47:52 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-02-06 19:47:52 +0000 |
commit | 4fa0f5d292add0d53554eb02351a78b18af8985d (patch) | |
tree | 7dd17fe04e31adc6cf324a1fd390126aac5cb155 /hw/vga_template.h | |
parent | 1ccde1cb942f77958776578939bbcfc4c9bdf362 (diff) |
added bochs VBE support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@602 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vga_template.h')
-rw-r--r-- | hw/vga_template.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ -391,6 +391,26 @@ static void glue(vga_draw_line16_, DEPTH)(VGAState *s1, uint8_t *d, } /* + * 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 */ static void glue(vga_draw_line32_, DEPTH)(VGAState *s1, uint8_t *d, |