diff -Naur include/vector2d.h include/vector2d.h --- include/vector2d.h 2005-03-01 14:43:46.756327119 +0100 +++ include/vector2d.h 2005-03-11 00:09:59.000000000 +0100 @@ -56,7 +56,7 @@ //! Returns the length of the vector //! \return Returns the length of the vector. - f64 getLength() const { return sqrt(X*X + Y*Y); } + f64 getLength() const { return hypot(X, Y); } //! Returns the dot product of this vector with an other. T dotProduct(const vector2d& other) const @@ -159,7 +159,7 @@ if (tmp == 0.0) return 90.0; - tmp = tmp / sqrt((X*X + Y*Y) * (b.X*b.X + b.Y*b.Y)); + tmp = tmp / (hypot(X, Y) * hypot(b.X, b.Y)); if (tmp < 0.0) tmp = -tmp; return atan(sqrt(1 - tmp*tmp) / tmp) * GRAD_PI; diff -Naur source/Irrlicht.old/CIrrDeviceLinux.cpp Irrlicht/CIrrDeviceLinux.cpp --- source/Irrlicht.old/CIrrDeviceLinux.cpp 2005-04-04 11:01:38.501505032 +0200 +++ source/Irrlicht/CIrrDeviceLinux.cpp 2005-03-13 01:26:21.000000000 +0100 @@ -701,16 +701,15 @@ int destPitch = SoftwareImage->bytes_per_line / 2; s16* destData = reinterpret_cast(SoftwareImage->data); - for (int x=0; x> 10)&0x1F)<<11 | - ((c >> 5)&0x1F) << 6 | - ((c)&0x1F); - } + int ssy = 0, sdy = 0; + for (int y=0; ybytes_per_line / 4; s32* destData = reinterpret_cast(SoftwareImage->data); - for (int y=0; ybytes_per_line / 4; s32* destData = reinterpret_cast(SoftwareImage->data); - for (int y=0; y