diff -r c3787dbd6315 -r adab82ab13a5 src/gldraw.cpp --- a/src/gldraw.cpp Fri Oct 18 18:12:23 2013 +0300 +++ b/src/gldraw.cpp Fri Oct 18 18:16:54 2013 +0300 @@ -1791,12 +1791,12 @@ // Check the top and bottom rows for (int i = 0; i < w && !filled; ++i) - if (imgdata[i] != white || imgdata[ ( (h - 1) * w) + i] != white) + if (imgdata[i] != white || imgdata[((h - 1) * w) + i] != white) filled = true; // Left and right edges for (int i = 0; i < h && !filled; ++i) - if (imgdata[i * w] != white || imgdata[ (i * w) + (w - 1)] != white) + if (imgdata[i * w] != white || imgdata[(i * w) + w - 1] != white) filled = true; delete[] cap;