Fix a null driver problem.
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@887 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
51fc477a4b
commit
4b4d770574
@ -866,10 +866,10 @@ void CIrrDeviceLinux::sleep(u32 timeMs, bool pauseTimer=false)
|
||||
//! sets the caption of the window
|
||||
void CIrrDeviceLinux::setWindowCaption(const wchar_t* text)
|
||||
{
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
if (DriverType == video::EDT_NULL)
|
||||
return;
|
||||
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
XTextProperty txt;
|
||||
XwcTextListToTextProperty(display, const_cast<wchar_t**>(&text), 1, XStdICCTextStyle, &txt);
|
||||
XSetWMName(display, window, &txt);
|
||||
@ -1010,6 +1010,9 @@ bool CIrrDeviceLinux::isWindowActive()
|
||||
void CIrrDeviceLinux::setResizeAble(bool resize)
|
||||
{
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
if (DriverType == video::EDT_NULL)
|
||||
return;
|
||||
|
||||
XUnmapWindow(display, window);
|
||||
if ( !resize )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user