X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8585e2b5065cff7dfd733c8a4780dba91bde2cb2..fd3880a72e8162f067bab5a4ed3f4b5fbe836da2:/include/wx/msw/display.h?ds=sidebyside

diff --git a/include/wx/msw/display.h b/include/wx/msw/display.h
index 1508887ee7..b9f849c4ba 100644
--- a/include/wx/msw/display.h
+++ b/include/wx/msw/display.h
@@ -19,9 +19,17 @@
 class WXDLLEXPORT wxDisplay : public wxDisplayBase
 {
 public:
+    // this function may be called *before* using any other wxDisplay methods
+    // to tell it to use DirectX functions instead of the standard Windows ones
+    static void UseDirectX(bool useDX);
+
+    // create the display object for the given physical display
     wxDisplay(size_t index = 0);
 
+    virtual ~wxDisplay();
+
     // implement base class pure virtuals
+    virtual bool IsOk() const;
     virtual wxRect GetGeometry() const;
     virtual wxString GetName() const;
 
@@ -34,6 +42,14 @@ private:
     // get the display name to use with EnumDisplaySettings()
     wxString GetNameForEnumSettings() const;
 
+    // we have different implementations using DirectDraw and without it
+    wxArrayVideoModes DoGetModesDirectX(const wxVideoMode& modeMatch) const;
+    bool DoChangeModeDirectX(const wxVideoMode& mode);
+
+    wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
+    bool DoChangeModeWindows(const wxVideoMode& mode);
+
+    
     DECLARE_NO_COPY_CLASS(wxDisplay);
 };