]> Git Repo - qemu.git/commitdiff
bitblt fix (aka Solaris display fix)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Nov 2004 21:43:57 +0000 (21:43 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Nov 2004 21:43:57 +0000 (21:43 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1150 c046a42c-6fe2-441c-8c8c-71466251a162

hw/cirrus_vga.c

index 7c34c5789920d139beb85da27440f2330fc1a6cf..d3eba4a3488b742fe7d299b90baea2e87343ea7f 100644 (file)
@@ -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;
     }
This page took 0.029544 seconds and 4 git commands to generate.