Fix compilo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ddf13afcfe
commit
69fb24ce03
@ -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; }
|
||||
|
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user