Fix compilo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-04-06 20:31:25 +00:00
parent ddf13afcfe
commit 69fb24ce03
2 changed files with 4 additions and 3 deletions

View File

@ -55,6 +55,7 @@ public:
int GetWidth() const { return w; } int GetWidth() const { return w; }
int GetHeight() const { return h; } int GetHeight() const { return h; }
int GetDepth() const { return bpp; } int GetDepth() const { return bpp; }
int GetRefresh() const { return refresh; }
// returns true if the object has been initialized // returns true if the object has been initialized
bool IsOk() const { return w && h; } bool IsOk() const { return w && h; }

View File

@ -252,9 +252,9 @@ bool wxDisplayImplX11::ChangeMode(const wxVideoMode& mode)
for (int i = 0; i < nNumModes; ++i) for (int i = 0; i < nNumModes; ++i)
{ {
if (!bRet && if (!bRet &&
ppXModes[i]->hdisplay == mode.w && ppXModes[i]->hdisplay == mode.GetWidth() &&
ppXModes[i]->vdisplay == mode.h && ppXModes[i]->vdisplay == mode.GetHeight() &&
wxCRR((*ppXModes[i])) == mode.refresh) wxCRR((*ppXModes[i])) == mode.GetRefresh())
{ {
//switch! //switch!
bRet = XF86VidModeSwitchToMode((Display*)wxGetDisplay(), DefaultScreen((Display*)wxGetDisplay()), bRet = XF86VidModeSwitchToMode((Display*)wxGetDisplay(), DefaultScreen((Display*)wxGetDisplay()),