Fix warnings if no X extension is available.
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@1397 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
030213c71e
commit
6b52de1f48
@ -173,9 +173,11 @@ bool CIrrDeviceLinux::createWindow()
|
||||
|
||||
if (CreationParams.Fullscreen)
|
||||
{
|
||||
#if defined(_IRR_LINUX_X11_VIDMODE_) || defined(_IRR_LINUX_X11_RANDR_)
|
||||
s32 eventbase, errorbase;
|
||||
s32 bestMode = -1;
|
||||
s32 defaultDepth=DefaultDepth(display,screennr);
|
||||
#endif
|
||||
|
||||
#ifdef _IRR_LINUX_X11_VIDMODE_
|
||||
if (XF86VidModeQueryExtension(display, &eventbase, &errorbase))
|
||||
@ -1081,8 +1083,10 @@ video::IVideoModeList* CIrrDeviceLinux::getVideoModeList()
|
||||
}
|
||||
if (display)
|
||||
{
|
||||
#if defined(_IRR_LINUX_X11_VIDMODE_) || defined(_IRR_LINUX_X11_RANDR_)
|
||||
s32 eventbase, errorbase;
|
||||
s32 defaultDepth=DefaultDepth(display,screennr);
|
||||
#endif
|
||||
|
||||
#ifdef _IRR_LINUX_X11_VIDMODE_
|
||||
if (XF86VidModeQueryExtension(display, &eventbase, &errorbase))
|
||||
|
Loading…
x
Reference in New Issue
Block a user