comment and 'fix' bug 1145623
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -382,10 +382,12 @@ size_t wxDisplayBase::GetCount()
|
|||||||
{
|
{
|
||||||
InitDisplays();
|
InitDisplays();
|
||||||
|
|
||||||
// I'm not sure if they really always return the same thing and if this is
|
//RN: FIXME: This is wrong - the display info array should reload after every call
|
||||||
// not true I'd like to know in which situation does it happen
|
//to GetCount() - otherwise it will not be accurate.
|
||||||
wxASSERT_MSG( gs_displays->GetCount() == (size_t)::GetSystemMetrics(SM_CMONITORS),
|
//The user can change the number of displays in display properties/settings
|
||||||
_T("So how many displays does this system have?") );
|
//after GetCount or similar is called and really mess this up...
|
||||||
|
//wxASSERT_MSG( gs_displays->GetCount() == (size_t)::GetSystemMetrics(SM_CMONITORS),
|
||||||
|
// _T("So how many displays does this system have?") );
|
||||||
|
|
||||||
return gs_displays->GetCount();
|
return gs_displays->GetCount();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user