Skip to contentSkip to conversation

cirrus_vga.c and win95, another one

PATCH New Magnus Damm 1 participant 1 message Jun 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cirrus_vga.c and win95, another one

Hello,

Here comes another small fix for the cirrus code. This makes win95 (swedish version) behave correctly. I am not sure if the patch breaks something else though.

Have a look at the attached pictures, compare the funny looking striped background behind the text with the correct checkered background.

Please apply.

/ magnus

Index: hw/cirrus_vga_rop2.h
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/cirrus_vga_rop2.h,v retrieving revision 1.6

cirrus_vga_rop2.h +1 -1
diff -u -r1.6 cirrus_vga_rop2.h
@@ -61,8 +61,8 @@
     pattern_pitch = 32;
 #endif
     pattern_y = s->cirrus_blt_srcaddr & 7;
-    pattern_x = skipleft;
     for(y = 0; y < bltheight; y++) {
+        pattern_x = skipleft;
         d = dst + skipleft;
         src1 = src + pattern_y * pattern_pitch;
         for (x = skipleft; x < bltwidth; x += (DEPTH / 8)) {