@@ 74,8 74,8 @@ VGAmode dfltmode =
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f,
0xff,
/* attribute */
- 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
- 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
+ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
+ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x01, 0x00, 0x0f, 0x00, 0x00,
/* special */
0x00, 0x00, 0xbc, 0x00, 0x00, 0x00, 0x28, 0x00,
@@ 443,7 443,7 @@ setmode(VGAmode *v)
for(i = 0; i < sizeof(v->attribute); i++)
arout(i, v->attribute[i]);
- EISAOUTB(0x3C6, 0xFF); /* pel mask */
+ EISAOUTB(0x3C6, 0x0F); /* pel mask */
EISAOUTB(0x3C8, 0x00); /* pel write address */
EISAOUTB(0x3bf, 0x03); /* hercules compatibility reg */
@@ 523,8 523,8 @@ screenupdate(void)
for(i = 0; i < len; i += 8) {
s = (ulong*)(sp+i);
h = (ulong*)(hp+i);
- in1 = s[0];
- in2 = s[1];
+ in1 = ~s[0];
+ in2 = ~s[1];
h[0] = swiz(in2);
h[1] = swiz(in1);
}