#if wxUSE_DISPLAY
+#include "wx/display.h"
+
#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
+ #include "wx/dynarray.h"
+ #include "wx/string.h"
+ #include "wx/gdicmn.h"
#endif
-#include "wx/display.h"
#include "wx/display_impl.h"
-#include "wx/gdicmn.h"
-#include "wx/string.h"
#import <Foundation/Foundation.h>
class wxDisplayImplMacOSX : public wxDisplayImpl
{
public:
- wxDisplayImplMacOSX(CGDirectDisplayID id_) : m_id(id_) { }
+ wxDisplayImplMacOSX(size_t n, CGDirectDisplayID id_)
+ : wxDisplayImpl(n),
+ m_id(id_)
+ {
+ }
virtual wxRect GetGeometry() const;
virtual wxString GetName() const { return wxString(); }
class wxDisplayFactoryMacOSX : public wxDisplayFactory
{
public:
- wxDisplayFactoryMacOSX();
+ wxDisplayFactoryMacOSX() { }
virtual wxDisplayImpl *CreateDisplay(size_t n);
virtual size_t GetCount();
wxASSERT( err == CGDisplayNoErr );
wxASSERT( n < theCount );
- wxDisplayImplMacOSX *display = new wxDisplayImplMacOSX(theIDs[n]);
+ wxDisplayImplMacOSX *display = new wxDisplayImplMacOSX(n, theIDs[n]);
delete [] theIDs;
/* static */ wxDisplayFactory *wxDisplay::CreateFactory()
{
- return new wxDisplayFactoryMac;
+ return new wxDisplayFactoryMacOSX;
}
#endif // wxUSE_DISPLAY
-