--- BasiliskII/src/video.cpp 2000/08/22 12:44:29 1.6 +++ BasiliskII/src/video.cpp 2001/05/31 15:36:33 1.8 @@ -1,7 +1,7 @@ /* * video.cpp - Video/graphics emulation * - * Basilisk II (C) 1997-2000 Christian Bauer + * Basilisk II (C) 1997-2001 Christian Bauer * Portions (C) 1997-1999 Marc Hellwig * * This program is free software; you can redistribute it and/or modify @@ -154,10 +154,8 @@ int16 VideoDriverControl(uint32 pb, uint uint32 p = VidLocal.desc->mac_frame_base; uint32 pat = pattern[VidLocal.desc->mode]; for (uint32 y=0; yy; y++) { - uint32 p2 = p; - for (uint32 x=0; xbytes_per_row / 4; x++) { - WriteMacInt32(p2, pat); - p2 += 4; + for (uint32 x=0; xbytes_per_row; x+=4) { + WriteMacInt32(p + x, pat); if (VidLocal.desc->mode == VMODE_32BIT) pat = ~pat; }