X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a90bf709147ab0640d138ba7e34af721bfd717d2..7ef2db2570c8abd3b472ac91df5035534948c09f:/src/unix/displayx11.cpp diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index 4736e99523..341ce07819 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "display.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -37,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 @@ -55,7 +53,8 @@ size_t wxDisplayBase::GetCount() { Display *disp = (Display*)wxGetDisplay(); - if ( XineramaIsActive(disp) ) +#ifndef __VMS + if ( XineramaIsActive(disp) ) { XineramaScreenInfo *screenarr; int numscreens; @@ -64,6 +63,7 @@ size_t wxDisplayBase::GetCount() return numscreens; } else +#endif { return 1; } @@ -73,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; @@ -96,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() && @@ -114,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; @@ -126,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();