X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66d0513058b98ac3af419ff31a75622ac071c639..76c66f195356ba96d37ff95f7a0289fcb0769f9f:/src/unix/displayx11.cpp diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index 687329efd2..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,9 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height) #else // !wxUSE_LIBHILDON +#include "wx/log.h" + +#include #include // TODO: make this a full-fledged class and move to a public header