fixed: compile without randr
authorbobo1on1 <bobo1on1@svn>
Thu, 30 Sep 2010 15:29:41 +0000 (15:29 +0000)
committerbobo1on1 <bobo1on1@svn>
Thu, 30 Sep 2010 15:29:41 +0000 (15:29 +0000)
(cherry picked from commit 997909643949c2bd062dbb01d708ff7f2b9105ec)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@34336 568bbfeb-2a22-0410-94d2-cc84cf5bfa90

xbmc/WinSystemX11.cpp

index 5fb7861..12f11d3 100644 (file)
@@ -73,9 +73,11 @@ bool CWinSystemX11::InitWindowSystem()
 
 bool CWinSystemX11::DestroyWindowSystem()
 {
+#if defined(HAS_XRANDR)
   //restore videomode on exit
   if (m_bFullScreen)
     g_xrandr.RestoreState();
+#endif
 
   if (m_dpy)
   {