summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-22 02:52:38 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-22 02:52:38 +0000
commitb21e98630e5d7deef9be5499ff1c8cf1cc5743bb (patch)
tree2ef373db50edd80a66500e03548537f35b90b9d1 /hw/blizzard_template.h
parentRemove duplicate definitions (diff)
downloadqemu-kvm-b21e98630e5d7deef9be5499ff1c8cf1cc5743bb.tar.gz
qemu-kvm-b21e98630e5d7deef9be5499ff1c8cf1cc5743bb.tar.bz2
qemu-kvm-b21e98630e5d7deef9be5499ff1c8cf1cc5743bb.zip
Fix update region size in EPSON blizzard.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4230 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/blizzard_template.h')
-rw-r--r--hw/blizzard_template.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/blizzard_template.h b/hw/blizzard_template.h
index 66aa939fa..1643c2d74 100644
--- a/hw/blizzard_template.h
+++ b/hw/blizzard_template.h
@@ -51,11 +51,11 @@ static void glue(blizzard_draw_line16_, DEPTH)(PIXEL_TYPE *dest,
const uint16_t *src, unsigned int width)
{
#if !defined(SWAP_WORDS) && DEPTH == 16
- memcpy(dest, src, width << 1);
+ memcpy(dest, src, width);
#else
uint16_t data;
unsigned int r, g, b;
- const uint16_t *end = (void *) src + width;
+ const uint16_t *end = (const void *) src + width;
while (src < end) {
data = lduw_raw(src ++);
b = (data & 0x1f) << 3;