# | Line 154 | Line 154 | int16 VideoDriverControl(uint32 pb, uint | |
---|---|---|
154 | uint32 p = VidLocal.desc->mac_frame_base; | |
155 | uint32 pat = pattern[VidLocal.desc->mode]; | |
156 | for (uint32 y=0; y<VidLocal.desc->y; y++) { | |
157 | < | uint32 p2 = p; |
158 | < | for (uint32 x=0; x<VidLocal.desc->bytes_per_row / 4; x++) { |
159 | < | WriteMacInt32(p2, pat); |
160 | < | p2 += 4; |
157 | > | for (uint32 x=0; x<VidLocal.desc->bytes_per_row; x+=4) { |
158 | > | WriteMacInt32(p + x, pat); |
159 | if (VidLocal.desc->mode == VMODE_32BIT) | |
160 | pat = ~pat; | |
161 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |