X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fb33bdb46265adfa632ec0805f0dbcb51f91181..088af5898e1eb76b8d159c746d679e6d41c2bdcf:/src/unix/displayx11.cpp diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index 2eae8ed4fe..341ce07819 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -33,11 +33,13 @@ * Xlibint.h conflicts with a function declaration in wx/list.h. */ extern "C" { #include +#ifndef __VMS #include - #include +# include #ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H #include #endif +#endif } class wxDisplayUnixPriv @@ -51,7 +53,8 @@ size_t wxDisplayBase::GetCount() { Display *disp = (Display*)wxGetDisplay(); - if ( XineramaIsActive(disp) ) +#ifndef __VMS + if ( XineramaIsActive(disp) ) { XineramaScreenInfo *screenarr; int numscreens; @@ -60,6 +63,7 @@ size_t wxDisplayBase::GetCount() return numscreens; } else +#endif { return 1; } @@ -69,7 +73,8 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p) { Display *disp = (Display*)wxGetDisplay(); - if ( XineramaIsActive(disp) ) +#ifndef __VMS + if ( XineramaIsActive(disp) ) { int which_screen = -1; XineramaScreenInfo *screenarr; @@ -92,7 +97,8 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p) return which_screen; } else - { +#endif + { wxSize size = wxGetDisplaySize(); if (p.x >= 0 && p.x < size.GetWidth() && @@ -110,7 +116,8 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp { Display *disp = (Display*)wxGetDisplay(); - if ( XineramaIsActive(disp) ) +#ifndef __VMS + if ( XineramaIsActive(disp) ) { XineramaScreenInfo *screenarr; int numscreens; @@ -122,7 +129,8 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp XFree(screenarr); } else - { +#endif + { wxSize size = wxGetDisplaySize(); m_priv->m_rect = wxRect(0, 0, size.GetWidth(), size.GetHeight()); m_priv->m_depth = wxDisplayDepth();