mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-26 18:50:31 +01:00
Minor code cleanup
fixing trivial level 4 warnings git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6589 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
56db5a39ea
commit
67fa713038
@ -435,8 +435,9 @@ irr::core::stringc SJoystickWin32Control::findJoystickName(int index, const JOYC
|
|||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
#endif
|
#else
|
||||||
return "";
|
return "";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SJoystickWin32Control::activateJoysticks(core::array<SJoystickInfo> & joystickInfo)
|
bool SJoystickWin32Control::activateJoysticks(core::array<SJoystickInfo> & joystickInfo)
|
||||||
|
@ -297,7 +297,8 @@ bool CWGLManager::initialize(const SIrrlichtCreationParameters& params, const SE
|
|||||||
// now get new window
|
// now get new window
|
||||||
CurrentContext.OpenGLWin32.HWnd=videodata.OpenGLWin32.HWnd;
|
CurrentContext.OpenGLWin32.HWnd=videodata.OpenGLWin32.HWnd;
|
||||||
// get hdc
|
// get hdc
|
||||||
if (!(CurrentContext.OpenGLWin32.HDc=GetDC((HWND)videodata.OpenGLWin32.HWnd)))
|
CurrentContext.OpenGLWin32.HDc=GetDC((HWND)videodata.OpenGLWin32.HWnd);
|
||||||
|
if (!CurrentContext.OpenGLWin32.HDc)
|
||||||
{
|
{
|
||||||
os::Printer::log("Cannot create a GL device context.", ELL_ERROR);
|
os::Printer::log("Cannot create a GL device context.", ELL_ERROR);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user