Changed: #878 Fix typos in comments/code

hg/feature/gsoc2012-fabien
kervala 13 years ago
parent dbb327deb0
commit d50e7369cf

@ -49,7 +49,7 @@ public:
* \param server * \param server
*/ */
virtual void submitEvents(CEventServer & server, bool allWindows) = 0; virtual void submitEvents(CEventServer & server, bool allWindows) = 0;
/** /**
* Instruct the event emitter to send CGDMouseMove instead of CEventMouseMove. * Instruct the event emitter to send CGDMouseMove instead of CEventMouseMove.
* *

@ -1228,7 +1228,7 @@ bool CDriverD3D::init (uint windowIcon, emptyProc exitFunc)
ExitFunc = exitFunc; ExitFunc = exitFunc;
createCursors(); createCursors();
// Register a window class // Register a window class
WNDCLASSW wc; WNDCLASSW wc;

@ -138,7 +138,7 @@ void CDriverGL::setLightInternal(uint8 num, const CLight& light)
} }
else else
{ {
// Deactivate spot properties // Disable spot properties
#ifdef USE_OPENGLES #ifdef USE_OPENGLES
glLightf (lightNum, GL_SPOT_CUTOFF, 180.f); glLightf (lightNum, GL_SPOT_CUTOFF, 180.f);
glLightf (lightNum, GL_SPOT_EXPONENT, 0.f); glLightf (lightNum, GL_SPOT_EXPONENT, 0.f);

@ -978,7 +978,7 @@ void CDriverGL::setupGlArraysStd(CVertexBufferInfo &vb)
// Check type // Check type
nlassert (vb.Type[CVertexBuffer::Normal]==CVertexBuffer::Float3); nlassert (vb.Type[CVertexBuffer::Normal]==CVertexBuffer::Float3);
_DriverGLStates.enableNormalArray(true); _DriverGLStates.enableNormalArray(true);
nglArrayObjectATI(GL_NORMAL_ARRAY, 3, GL_FLOAT, vb.VertexSize, vb.VertexObjectId, (ptrdiff_t) vb.ValuePtr[CVertexBuffer::Normal]); nglArrayObjectATI(GL_NORMAL_ARRAY, 3, GL_FLOAT, vb.VertexSize, vb.VertexObjectId, (ptrdiff_t) vb.ValuePtr[CVertexBuffer::Normal]);
} }
else else
{ {

@ -58,7 +58,7 @@ bool CNELU::initDriver (uint w, uint h, uint bpp, bool windowed, nlWindow syst
CNELU::Driver = NULL; CNELU::Driver = NULL;
// Init driver. // Init driver.
#if defined(NL_OS_WINDOWS) #ifdef NL_OS_WINDOWS
if (direct3d) if (direct3d)
{ {
CNELU::Driver= CDRU::createD3DDriver(); CNELU::Driver= CDRU::createD3DDriver();
@ -75,6 +75,7 @@ bool CNELU::initDriver (uint w, uint h, uint bpp, bool windowed, nlWindow syst
nlwarning ("CNELU::initDriver: no driver found"); nlwarning ("CNELU::initDriver: no driver found");
return false; return false;
} }
if (!CNELU::Driver->init()) if (!CNELU::Driver->init())
{ {
nlwarning ("CNELU::initDriver: init() failed"); nlwarning ("CNELU::initDriver: init() failed");

@ -179,7 +179,7 @@ static const CStringConversion<TKey>::CPair stringTable [] =
{ "KeyNONAME", KeyNONAME }, { "KeyNONAME", KeyNONAME },
{ "KeyPA1", KeyPA1 }, { "KeyPA1", KeyPA1 },
{ "KeyOEM_CLEAR", KeyOEM_CLEAR }, { "KeyOEM_CLEAR", KeyOEM_CLEAR },
}; }
static CStringConversion<TKey> KeyConversion(stringTable, sizeof(stringTable) / sizeof(stringTable[0]), KeyCount); static CStringConversion<TKey> KeyConversion(stringTable, sizeof(stringTable) / sizeof(stringTable[0]), KeyCount);

Loading…
Cancel
Save