]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/html/htmlwin.h
activating DrawRectangle optimization
[wxWidgets.git] / include / wx / html / htmlwin.h
index 580dbbca9bdeca45939765fe498becbbb0823580..b95e7d6267242726edadd0aff2b35f3682c5a1a4 100644 (file)
@@ -403,6 +403,7 @@ protected:
     void CreateLayout();
 
     void OnPaint(wxPaintEvent& event);
+    void OnEraseBackground(wxEraseEvent& event);
     void OnSize(wxSizeEvent& event);
     void OnMouseMove(wxMouseEvent& event);
     void OnMouseDown(wxMouseEvent& event);
@@ -545,6 +546,10 @@ private:
     // if this FLAG is false, items are not added to history
     bool m_HistoryOn;
 
+    // Flag used to communicate between OnPaint() and OnEraseBackground(), see
+    // the comments near its use.
+    bool m_isBgReallyErased;
+
     // standard mouse cursors
     static wxCursor *ms_cursorLink;
     static wxCursor *ms_cursorText;