// Modified by:
// Created: 12/05/02
// RCS-ID: $Id$
-// Copyright: (c) wxWindows team
+// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#endif
#include "wx/display.h"
+#include "wx/intl.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/extensions/Xinerama.h>
+#ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
#include <X11/extensions/xf86vmode.h>
+#endif
}
class wxDisplayUnixPriv
XineramaScreenInfo *screenarr;
int numscreens;
screenarr = XineramaQueryScreens(disp, &numscreens);
+
m_priv->m_rect = wxRect(screenarr[index].x_org, screenarr[index].y_org,
screenarr[index].width, screenarr[index].height);
m_priv->m_depth = DefaultDepth(disp, DefaultScreen(disp));
return wxEmptyString;
}
+
+#ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
+
//
// See (http://www.xfree86.org/4.2.0/XF86VidModeDeleteModeLine.3.html) for more
// info about xf86 video mode extensions
}
else //OOPS!
{
- wxLogSysError("XF86VidModeGetAllModeLines Failed in wxX11Display::GetModes()!");
+ wxLogSysError(_("Failed to enumerate video modes"));
}
return Modes;
}
else //OOPS!
{
- wxLogSysError("XF86VidModeGetAllModeLines Failed in wxX11Display::ChangeMode()!");
+ wxLogSysError(_("Failed to change video mode"));
return false;
}
}
- /*
- //Brian Victor's patch (X11 can't change bit depth yet), here for reference
+}
+
+
+#else // !HAVE_X11_EXTENSIONS_XF86VMODE_H
+
+wxArrayVideoModes wxDisplay::GetModes(const wxVideoMode& mode) const
+{
Display *disp = (Display*)wxGetDisplay();
int count_return;
int* depths = XListDepths(disp, 0, &count_return);
}
}
return modes;
- */
}
-#endif /* wxUSE_DISPLAY */
+wxVideoMode wxDisplay::GetCurrentMode() const
+{
+ // Not implemented
+ return wxVideoMode();
+}
+
+bool wxDisplay::ChangeMode(const wxVideoMode& mode)
+{
+ // Not implemented
+ return false;
+}
+#endif // !HAVE_X11_EXTENSIONS_XF86VMODE_H
+
+#endif /* wxUSE_DISPLAY */