Commit c9c0eae84e788a13321e92356ca1c69829bb271b
1 parent
c72a345f
bitblt fix (aka Solaris display fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1150 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
1 deletions
hw/cirrus_vga.c
... | ... | @@ -737,7 +737,8 @@ static int cirrus_bitblt_cputovideo(CirrusVGAState * s) |
737 | 737 | else |
738 | 738 | s->cirrus_blt_srcpitch = ((w + 7) >> 3); |
739 | 739 | } else { |
740 | - s->cirrus_blt_srcpitch = s->cirrus_blt_width; | |
740 | + /* always align input size to 32 bits */ | |
741 | + s->cirrus_blt_srcpitch = (s->cirrus_blt_width + 3) & ~3; | |
741 | 742 | } |
742 | 743 | s->cirrus_srccounter = s->cirrus_blt_srcpitch * s->cirrus_blt_height; |
743 | 744 | } | ... | ... |