mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
limited 8 bit support - removed unaligned memory accesses in VGA (initial patch by Johannes Schindelin)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1116 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9bc9d1c75a
commit
188d857911
3 changed files with 35 additions and 10 deletions
3
hw/vga.c
3
hw/vga.c
|
@ -824,8 +824,7 @@ typedef void vga_draw_line_func(VGAState *s1, uint8_t *d,
|
|||
|
||||
static inline unsigned int rgb_to_pixel8(unsigned int r, unsigned int g, unsigned b)
|
||||
{
|
||||
/* XXX: TODO */
|
||||
return 0;
|
||||
return ((r >> 5) << 5) | ((g >> 5) << 2) | (b >> 6);
|
||||
}
|
||||
|
||||
static inline unsigned int rgb_to_pixel15(unsigned int r, unsigned int g, unsigned b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue