X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68379eaf0ae64d105f8244b1db83e793f7dd83b0..32485259c1342115488d219776dfebeb3d4d81b1:/include/wx/display.h?ds=sidebyside diff --git a/include/wx/display.h b/include/wx/display.h index f81a57b18a..99423b6479 100644 --- a/include/wx/display.h +++ b/include/wx/display.h @@ -29,7 +29,7 @@ class WXDLLEXPORT wxString; WX_DECLARE_EXPORTED_OBJARRAY(wxVideoMode, wxArrayVideoModes); // default, uninitialized, video mode object -WXDLLEXPORT_DATA(extern const wxVideoMode) wxDefaultVideoMode; +extern WXDLLEXPORT_DATA(const wxVideoMode) wxDefaultVideoMode; // ---------------------------------------------------------------------------- // wxDisplayBase: represents a display/monitor attached to the system @@ -67,8 +67,8 @@ public: // name may be empty virtual wxString GetName() const = 0; - // display 0 is always the primary display - bool IsPrimary() const { return m_index == 0; } + // display 0 is usually the primary display + virtual bool IsPrimary() const { return m_index == 0; } // enumerate all video modes supported by this display matching the given @@ -111,6 +111,8 @@ protected: #include "wx/unix/displayx11.h" #elif defined(__WXX11__) #include "wx/unix/displayx11.h" +#elif defined(__WXCOCOA__) + #include "wx/cocoa/display.h" #elif defined(__WXMAC__) #include "wx/mac/display.h" #elif defined(__WXPM__)