Commit b21e98630e5d7deef9be5499ff1c8cf1cc5743bb

Authored by balrog
1 parent 216fdffa

Fix update region size in EPSON blizzard.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4230 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
hw/blizzard_template.h
@@ -51,11 +51,11 @@ static void glue(blizzard_draw_line16_, DEPTH)(PIXEL_TYPE *dest, @@ -51,11 +51,11 @@ static void glue(blizzard_draw_line16_, DEPTH)(PIXEL_TYPE *dest,
51 const uint16_t *src, unsigned int width) 51 const uint16_t *src, unsigned int width)
52 { 52 {
53 #if !defined(SWAP_WORDS) && DEPTH == 16 53 #if !defined(SWAP_WORDS) && DEPTH == 16
54 - memcpy(dest, src, width << 1); 54 + memcpy(dest, src, width);
55 #else 55 #else
56 uint16_t data; 56 uint16_t data;
57 unsigned int r, g, b; 57 unsigned int r, g, b;
58 - const uint16_t *end = (void *) src + width; 58 + const uint16_t *end = (const void *) src + width;
59 while (src < end) { 59 while (src < end) {
60 data = lduw_raw(src ++); 60 data = lduw_raw(src ++);
61 b = (data & 0x1f) << 3; 61 b = (data & 0x1f) << 3;