diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-11-15 21:43:57 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-11-15 21:43:57 +0000 |
commit | c9c0eae84e788a13321e92356ca1c69829bb271b (patch) | |
tree | 556ee693abe17c3fe6fd6e422ae4f698cbb9d490 /hw | |
parent | c72a345f5bf710009ad90f0b2a7e9df1e66996d1 (diff) | |
download | qemu-c9c0eae84e788a13321e92356ca1c69829bb271b.tar.gz qemu-c9c0eae84e788a13321e92356ca1c69829bb271b.tar.bz2 qemu-c9c0eae84e788a13321e92356ca1c69829bb271b.zip |
bitblt fix (aka Solaris display fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1150 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/cirrus_vga.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 7c34c57899..d3eba4a348 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -737,7 +737,8 @@ static int cirrus_bitblt_cputovideo(CirrusVGAState * s) else s->cirrus_blt_srcpitch = ((w + 7) >> 3); } else { - s->cirrus_blt_srcpitch = s->cirrus_blt_width; + /* always align input size to 32 bits */ + s->cirrus_blt_srcpitch = (s->cirrus_blt_width + 3) & ~3; } s->cirrus_srccounter = s->cirrus_blt_srcpitch * s->cirrus_blt_height; } |