Commit d4d4da09 authored by hybrid's avatar hybrid

Linux device fix by zeitgeisty.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@729 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 010e9b2f
......@@ -99,7 +99,7 @@ namespace irr
: Device(dev), IsVisible(true), Null(null), UseReferenceRect(false)
{
#ifdef _IRR_COMPILE_WITH_X11_
if (!null)
if (!Null)
{
XGCValues values;
unsigned long valuemask = 0;
......@@ -133,7 +133,8 @@ namespace irr
~CCursorControl()
{
#ifdef _IRR_COMPILE_WITH_X11_
XFreeGC(Device->display, gc);
if (!Null)
XFreeGC(Device->display, gc);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment