wxDisplay::GetFromWindow is only on msw evidently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -438,7 +438,8 @@ void wxWindowBase::Centre(int direction)
|
|||||||
//RN: If we are using wxDisplay we get
|
//RN: If we are using wxDisplay we get
|
||||||
//the dimensions of the monitor the window is on,
|
//the dimensions of the monitor the window is on,
|
||||||
//otherwise we get the dimensions of the primary monitor
|
//otherwise we get the dimensions of the primary monitor
|
||||||
#if wxUSE_DISPLAY
|
//FIXME: wxDisplay::GetFromWindow only implemented on MSW
|
||||||
|
#if wxUSE_DISPLAY && defined(__WXMSW__)
|
||||||
int nDisplay = wxDisplay::GetFromWindow((wxWindow*)this);
|
int nDisplay = wxDisplay::GetFromWindow((wxWindow*)this);
|
||||||
if(nDisplay != wxNOT_FOUND)
|
if(nDisplay != wxNOT_FOUND)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user