mearrin69 #1 Whoops. There was an error in the code above...fixed now. I switched around the x and y loops to optimize on drawing scanline gain but forgot to change the loop end conditions. Didn't show itself until I tried a non-square window.