diff --git a/src/nvimage/DirectDrawSurface.cpp b/src/nvimage/DirectDrawSurface.cpp index 41b4f0b..e74c4d5 100644 --- a/src/nvimage/DirectDrawSurface.cpp +++ b/src/nvimage/DirectDrawSurface.cpp @@ -638,7 +638,7 @@ void DDSHeader::setFourCC(uint8 c0, uint8 c1, uint8 c2, uint8 c3) // set fourcc pixel format. this->pf.flags = DDPF_FOURCC; this->pf.fourcc = MAKEFOURCC(c0, c1, c2, c3); - + this->pf.bitcount = 0; this->pf.rmask = 0; this->pf.gmask = 0; diff --git a/src/nvimage/FloatImage.h b/src/nvimage/FloatImage.h index c6d02e1..bc47149 100644 --- a/src/nvimage/FloatImage.h +++ b/src/nvimage/FloatImage.h @@ -247,7 +247,7 @@ inline uint FloatImage::indexMirror(int x, int y) const } if (m_height == 1) y = 0; - + y = abs(y); while (y >= m_height) { y = abs(m_height + m_height - y - 2);