Fix indexMirror error reported by Chris Lambert.
This commit is contained in:
parent
75c09220c8
commit
f5ae4c1a9a
@ -228,12 +228,12 @@ inline uint FloatImage::indexMirror(int x, int y) const
|
|||||||
{
|
{
|
||||||
x = abs(x);
|
x = abs(x);
|
||||||
while (x >= m_width) {
|
while (x >= m_width) {
|
||||||
x = m_width + m_width - x - 2;
|
x = abs(m_width + m_width - x - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
y = abs(y);
|
y = abs(y);
|
||||||
while (y >= m_height) {
|
while (y >= m_height) {
|
||||||
y = m_height + m_height - y - 2;
|
y = abs(m_height + m_height - y - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
return index(x, y);
|
return index(x, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user