Changed: #878 Fix typos in comments/code

This commit is contained in:
kervala 2010-11-04 22:22:29 +01:00
parent fb95299802
commit c7d523beb5
6 changed files with 7 additions and 11 deletions

View file

@ -762,7 +762,6 @@ public:
* From this interface you can deal with mouse and keyboard as above, but you can also manage game device (joysticks, joypads ...)
*/
virtual NLMISC::IInputDeviceManager *getLowLevelInputDeviceManager() = 0;
// @}
/// Get the width and the height of the window

View file

@ -2722,6 +2722,7 @@ bool CDriverD3D::fillPresentParameter (D3DPRESENT_PARAMETERS &parameters, D3DFOR
D3DFMT_D24FS8,
//D3DFMT_D16,
};
const uint zbufferFormatCount = sizeof(zbufferFormats)/sizeof(D3DFORMAT);
uint i;
for (i=0; i<zbufferFormatCount; i++)

View file

@ -417,7 +417,7 @@ void CDriverGL::setSystemArrow()
#endif
}
// --------------------------------------------------
// ***************************************************************************
void CDriverGL::showCursor(bool b)
{
H_AUTO_OGL(CDriverGL_showCursor);
@ -484,7 +484,7 @@ void CDriverGL::showCursor(bool b)
#endif // NL_OS_UNIX
}
// --------------------------------------------------
// ***************************************************************************
void CDriverGL::setMousePos(float x, float y)
{
H_AUTO_OGL(CDriverGL_setMousePos)
@ -538,9 +538,10 @@ void CDriverGL::setMousePos(float x, float y)
#endif // NL_OS_UNIX
}
// ***************************************************************************
void CDriverGL::setCapture (bool b)
{
H_AUTO_OGL(CDriverGL_setCapture )
H_AUTO_OGL(CDriverGL_setCapture);
#ifdef NL_OS_WINDOWS
@ -583,6 +584,7 @@ void CDriverGL::setCapture (bool b)
#endif // NL_OS_UNIX
}
// ***************************************************************************
bool CDriverGL::isSystemCursorInClientArea()
{
if (_FullScreen /* || !IsMouseCursorHardware() */)

View file

@ -621,8 +621,6 @@ void screenShotPNG()
COFile fs(filename);
if (!btm.writePNG(fs, 24))
{
// PNG file has been incorrectly written (mainly because libpng1x.dll was not found)
// so close and delete it
fs.close();
CFile::deleteFile(filename);
return;

View file

@ -152,7 +152,7 @@ void CInputHandlerManager::operator ()(const NLMISC::CEvent &event)
CEventSetFocus *pEvent=(CEventSetFocus *)&event;
if (!pEvent->Get)
{
// Disactive all keys
// Deactivate all keys
_MouseButtonsDown = noButton;
_MouseButtonsReleased = noButton;
_MouseButtonsState = noButton;

View file

@ -1384,7 +1384,6 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m
uint32 timeStamp = 0;
if (! compressed)
{
FILE* file = fopen(filename.c_str(),"rb");
if (!file)
{
@ -1488,9 +1487,6 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m
uncompressedFile = new uint8[ data.size() ];
memcpy(uncompressedFile, data.c_str(), data.size());
uncompressedFileLength = (uint32)data.size();
}
else
{