git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53064
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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; }
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()),