X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64bd3204f1a966ee447d6a641d3e1da67470dceb..9cd722e33761671e3a03a30313ef6486a55d2730:/src/unix/displayx11.cpp?ds=sidebyside diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index 87ab205039..de3a03b019 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -252,9 +252,9 @@ bool wxDisplayImplX11::ChangeMode(const wxVideoMode& mode) for (int i = 0; i < nNumModes; ++i) { if (!bRet && - ppXModes[i]->hdisplay == mode.w && - ppXModes[i]->vdisplay == mode.h && - wxCRR((*ppXModes[i])) == mode.refresh) + ppXModes[i]->hdisplay == mode.GetWidth() && + ppXModes[i]->vdisplay == mode.GetHeight() && + wxCRR((*ppXModes[i])) == mode.GetRefresh()) { //switch! bRet = XF86VidModeSwitchToMode((Display*)wxGetDisplay(), DefaultScreen((Display*)wxGetDisplay()), @@ -343,6 +343,8 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height) #else // !wxUSE_LIBHILDON +#include "wx/log.h" + #include <X11/Xlib.h> #include <X11/Xatom.h>