X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/475a93b76ad82a35df3b05f231fd9c16a62aa774..1bd2ceb57b0cc9f2b07b8bbb7d38d0e0d2381d3a:/include/wx/app.h?ds=sidebyside diff --git a/include/wx/app.h b/include/wx/app.h index 2f1ffac900..058ac76b42 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -463,7 +463,8 @@ public: virtual bool SetDisplayMode(const wxVideoMode& WXUNUSED(info)) { return true; } // set use of best visual flag (see below) - void SetUseBestVisual( bool flag ) { m_useBestVisual = flag; } + void SetUseBestVisual( bool flag, bool forceTrueColour = false ) + { m_useBestVisual = flag; m_forceTrueColour = forceTrueColour; } bool GetUseBestVisual() const { return m_useBestVisual; } // set/get printing mode: see wxPRINT_XXX constants. @@ -534,6 +535,8 @@ protected: // true if the app wants to use the best visual on systems where // more than one are available (Sun, SGI, XFree86 4.0 ?) bool m_useBestVisual; + // force TrueColour just in case "best" isn't TrueColour + bool m_forceTrueColour; // does any of our windows have focus? bool m_isActive;