Reduce needless use of wchar / stringw

This commit is contained in:
sfan5
2024-02-18 16:29:03 +01:00
parent 2894d9ab03
commit 19819bd23a
16 changed files with 34 additions and 104 deletions

View File

@@ -90,9 +90,9 @@ bool COpenGLDriver::genericDriverInit()
if (ContextManager)
ContextManager->grab();
Name=L"OpenGL ";
Name="OpenGL ";
Name.append(glGetString(GL_VERSION));
s32 pos=Name.findNext(L' ', 7);
s32 pos=Name.findNext(' ', 7);
if (pos != -1)
Name=Name.subString(0, pos);
printVersion();
@@ -2920,7 +2920,7 @@ void COpenGLDriver::setRenderStates2DMode(bool alpha, bool texture, bool alphaCh
//! \return Returns the name of the video driver.
const wchar_t* COpenGLDriver::getName() const
const char* COpenGLDriver::getName() const
{
return Name.c_str();
}