Implement wxColourDisplay() in terms of wxDisplay::GetDepth()

Get rid of another global display-related function, even though this one
only had non-trivial implementation under MSW.
This commit is contained in:
Vadim Zeitlin
2018-10-06 16:14:45 +02:00
parent 382404f0a7
commit e3e883bbd2
10 changed files with 11 additions and 62 deletions

View File

@@ -1183,6 +1183,10 @@ const wxSize wxDefaultSize;
/**
Returns @true if the display is colour, @false otherwise.
@note Use of this function is not recommended in the new code as it only
works for the primary display. Use wxDisplay::GetDepth() to retrieve
the depth of the appropriate display and compare it with 1 instead.
@header{wx/gdicmn.h}
*/
bool wxColourDisplay();