#else // !HAVE_X11_EXTENSIONS_XF86VMODE_H
-wxArrayVideoModes wxDisplayImplX11::GetModes(const wxVideoMode& mode) const
+wxArrayVideoModes wxDisplayImplX11::GetModes(const wxVideoMode& modeMatch) const
{
int count_return;
int* depths = XListDepths((Display*)wxGetDisplay(), 0, &count_return);
{
for ( int x = 0; x < count_return; ++x )
{
- modes.Add(wxVideoMode(m_rect.GetWidth(), m_rect.GetHeight(), depths[x]));
+ wxVideoMode mode(m_rect.GetWidth(), m_rect.GetHeight(), depths[x]);
+ if ( mode.Matches(modeMatch) )
+ {
+ modes.Add(modeMatch);
+ }
}
XFree(depths);
return wxVideoMode();
}
-bool wxDisplayImplX11::ChangeMode(const wxVideoMode& mode)
+bool wxDisplayImplX11::ChangeMode(const wxVideoMode& WXUNUSED(mode))
{
// Not implemented
return false;