small cleanup

This commit is contained in:
cebix 2001-05-31 15:36:33 +00:00
parent 0cb5ef8767
commit 31610651eb

View File

@ -154,10 +154,8 @@ int16 VideoDriverControl(uint32 pb, uint32 dce)
uint32 p = VidLocal.desc->mac_frame_base; uint32 p = VidLocal.desc->mac_frame_base;
uint32 pat = pattern[VidLocal.desc->mode]; uint32 pat = pattern[VidLocal.desc->mode];
for (uint32 y=0; y<VidLocal.desc->y; y++) { for (uint32 y=0; y<VidLocal.desc->y; y++) {
uint32 p2 = p; for (uint32 x=0; x<VidLocal.desc->bytes_per_row; x+=4) {
for (uint32 x=0; x<VidLocal.desc->bytes_per_row / 4; x++) { WriteMacInt32(p + x, pat);
WriteMacInt32(p2, pat);
p2 += 4;
if (VidLocal.desc->mode == VMODE_32BIT) if (VidLocal.desc->mode == VMODE_32BIT)
pat = ~pat; pat = ~pat;
} }