index dbd8fe69e583c37d310869933bf8bb9ceb1d6d3d..faacda3a437f8c377b16a8c427e5ad2a864678c3 100644 (file)
if (x == y || w - x == h - y)
return RGB(255, 255, 255);
// diagonal line
- else if (w - x == y || x == h - y)
+ else if (w - x - 1 == y || x == h - y - 1)
return RGB(255, 255, 255);
else {
int t = (x - xm1 - 1) * 8 / (xm2 - xm1 - 1);