Fixes for wxMotif

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-05-25 10:20:51 +00:00
parent 1b0f5e5864
commit 6655c15632
2 changed files with 6 additions and 0 deletions

View File

@ -634,6 +634,9 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
return wxGenericFindWindowAtPoint(pt);
}
// Now in utilsx11.cpp
#if 0
// ----------------------------------------------------------------------------
// keycode translations
// ----------------------------------------------------------------------------
@ -876,6 +879,7 @@ KeySym wxCharCodeWXToX(int id)
return keySym;
}
#endif
// ----------------------------------------------------------------------------
// Some colour manipulation routines

View File

@ -768,6 +768,8 @@ bool wxGetKeyState(wxKeyCode key)
Display *pDisplay = wxApp::GetDisplay();
#elif defined(__WXGTK__)
Display *pDisplay = GDK_DISPLAY();
#elif defined(__WXMOTIF__)
Display *pDisplay = (Display*) (wxTheApp ? wxTheApp->GetInitialDisplay() : NULL);
#else
#error Add code to get the DISPLAY for this platform
#endif