diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-05 12:59:04 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-08 18:13:13 +0200 |
commit | fc97bb5ba3e7239c0b6d24095df6784868dfebbf (patch) | |
tree | 6367fc217473184292a7eeee38c1b8e6a0db1573 /hw/milkymist-vgafb_template.h | |
parent | 34b8f63ea1aa0941f11c6c032f8e1716269a0449 (diff) | |
download | qemu-fc97bb5ba3e7239c0b6d24095df6784868dfebbf.zip qemu-fc97bb5ba3e7239c0b6d24095df6784868dfebbf.tar.gz qemu-fc97bb5ba3e7239c0b6d24095df6784868dfebbf.tar.bz2 |
hw: move display devices to hw/display/, configure via default-configs/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/milkymist-vgafb_template.h')
-rw-r--r-- | hw/milkymist-vgafb_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/milkymist-vgafb_template.h b/hw/milkymist-vgafb_template.h index 1d33ee8..e0036e1 100644 --- a/hw/milkymist-vgafb_template.h +++ b/hw/milkymist-vgafb_template.h @@ -61,7 +61,7 @@ static void glue(draw_line_, BITS)(void *opaque, uint8_t *d, const uint8_t *s, uint8_t r, g, b; while (width--) { - rgb565 = lduw_raw(s); + memcpy(&rgb565, s, sizeof(rgb565)); r = ((rgb565 >> 11) & 0x1f) << 3; g = ((rgb565 >> 5) & 0x3f) << 2; b = ((rgb565 >> 0) & 0x1f) << 3; |