Fixed some warnings. Fixed minimizeWidow under Linux.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2259 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-03-09 09:09:36 +00:00
parent 0aab2f1924
commit f0b34d4943
4 changed files with 6 additions and 4 deletions

View File

@ -1161,7 +1161,7 @@ video::IVideoModeList* CIrrDeviceLinux::getVideoModeList()
void CIrrDeviceLinux::minimizeWindow()
{
#ifdef _IRR_COMPILE_WITH_X11_
XUnmapWindow(display, window);
XIconifyWindow(display, window, screennr);
#endif
}

View File

@ -466,7 +466,7 @@ void CPLYMeshFileLoader::fillBuffer()
else
{
// read data from the file
s32 count = File->read(EndPointer, PLY_INPUT_BUFFER_SIZE - length);
u32 count = File->read(EndPointer, PLY_INPUT_BUFFER_SIZE - length);
// increment the end pointer by the number of bytes read
EndPointer = EndPointer + count;

View File

@ -102,7 +102,7 @@ bool CPLYMeshWriter::writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 fla
{
const core::vector3df& pos = mb->getPosition(j);
const core::vector3df& n = mb->getNormal(j);
const core::vector2df& tc = mb->getTCoords(j);
// const core::vector2df& tc = mb->getTCoords(j);
u8 *buf = (u8*)mb->getVertices();
switch(mb->getVertexType())
@ -117,7 +117,7 @@ bool CPLYMeshWriter::writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 fla
buf += sizeof(video::S3DVertexTangents)*j;
break;
}
video::SColor &col = ( (video::S3DVertex*)buf )->Color;
// video::SColor &col = ( (video::S3DVertex*)buf )->Color;
// x y z nx ny nz red green blue alpha u v [u1 v1 | tx ty tz]\n
snprintf(outLine, 1024,

View File

@ -661,6 +661,8 @@ void CQ3LevelMesh::parser_parse( const void * data, const u32 size, CQ3LevelMesh
} break;
default:
break;
}
} while ( Parser.tokenresult != Q3_TOKEN_EOF );