1 |
|
/* |
2 |
|
* video.cpp - Video/graphics emulation |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2000 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2001 Christian Bauer |
5 |
|
* Portions (C) 1997-1999 Marc Hellwig |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
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 |
|
} |