From: Robert Roebling Date: Sun, 6 Apr 2008 20:31:25 +0000 (+0000) Subject: Fix compilo X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69fb24ce03b4dd40e7912936d628bea1719aaaa3 Fix compilo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/vidmode.h b/include/wx/vidmode.h index e22c8d8f07..c999eb7d86 100644 --- a/include/wx/vidmode.h +++ b/include/wx/vidmode.h @@ -55,6 +55,7 @@ public: int GetWidth() const { return w; } int GetHeight() const { return h; } int GetDepth() const { return bpp; } + int GetRefresh() const { return refresh; } // returns true if the object has been initialized bool IsOk() const { return w && h; } diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index e74d312163..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()),