X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ace0fab4f1207124c8d3e4fcf552e596ff9dc470..cea62f9c12daeab0e69308c93dd1bd6d5547b4c0:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index aeb866827a..0709e77518 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -8,7 +8,7 @@ ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "winpars.h" #endif @@ -31,6 +31,7 @@ #include "wx/html/htmlwin.h" #include "wx/fontmap.h" #include "wx/log.h" +#include "wx/settings.h" //----------------------------------------------------------------------------- @@ -187,6 +188,12 @@ void wxHtmlWinParser::InitParser(const wxString& source) #endif m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor)); + wxColour windowColour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) ; + m_Container->InsertCell( + new wxHtmlColourCell(GetWindow() ? + GetWindow()->GetBackgroundColour() : + windowColour, + wxHTML_CLR_BACKGROUND)); m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont())); }