mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: #878 Fix typos in comments/code
This commit is contained in:
parent
78984475bb
commit
f9d13d61fc
6 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -2722,6 +2722,7 @@ bool CDriverD3D::fillPresentParameter (D3DPRESENT_PARAMETERS ¶meters, D3DFOR
|
|||
D3DFMT_D24FS8,
|
||||
//D3DFMT_D16,
|
||||
};
|
||||
|
||||
const uint zbufferFormatCount = sizeof(zbufferFormats)/sizeof(D3DFORMAT);
|
||||
uint i;
|
||||
for (i=0; i<zbufferFormatCount; i++)
|
||||
|
|
|
@ -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() */)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue