Added more checkbuttons and really fixed circle mask

This commit is contained in:
2007-03-01 17:07:54 +00:00
parent 25a5a92463
commit 04216fbec2
3 changed files with 12 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ namespace Mask
for (int y = 0; y < size; ++y)
{
newMask->mask[y*size+x] =
(sqrt( pow(x - x/2, 2) + pow(y - y/2, 2)) < size / 2)
(sqrt( pow(x - size/2, 2) + pow(y - size/2, 2)) <= size / 2 )
? 255 : 0;
}
}