diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index a4c6a40a00..f8d6585960 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -1788,7 +1788,7 @@ void MyCanvas::Draw(wxDC& pdc) return; } - gdc.SetBackground(GetBackgroundColour()); + gdc.SetBackground(wxBrush(GetBackgroundColour(),wxBRUSHSTYLE_SOLID)); gdc.SetGraphicsContext(context); } diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index e420519457..cd9d7e9684 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -2614,7 +2614,7 @@ wxD2DFontData::wxD2DFontData(wxGraphicsRenderer* renderer, ID2D1Factory* d2dFact wxCHECK_RET( n > 0, wxS("Failed to obtain font info") ); // Ensure the LOGFONT object contains the correct font face name - if (lstrlen(logfont.lfFaceName) == 0) + if (logfont.lfFaceName[0] == L'\0') { // The length of the font name must not exceed LF_FACESIZE TCHARs, // including the terminating NULL. diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 1cc18062fe..cbba253924 100755 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -72,14 +72,14 @@ FUNC_FOR_CMD = 1 GENERATE_PROVISIONAL_ITEMS = 0 # No wxSTC value will be generated for the following Scintilla values. -notMappedSciValues = { +notMappedSciValues = set([ 'SC_TECHNOLOGY_DIRECTWRITERETAIN', 'SC_TECHNOLOGY_DIRECTWRITEDC', 'INDIC0_MASK', 'INDIC1_MASK', 'INDIC2_MASK', 'INDICS_MASK' -} +]) # Map some generic typenames to wx types, using return value syntax retTypeMap = { diff --git a/src/stc/scintilla/lexers/LexProgress.cxx b/src/stc/scintilla/lexers/LexProgress.cxx index cede44ebea..1a7c52503b 100644 --- a/src/stc/scintilla/lexers/LexProgress.cxx +++ b/src/stc/scintilla/lexers/LexProgress.cxx @@ -25,6 +25,7 @@ Differentiate between labels and variables #include #include #include +#include #include "ILexer.h" #include "Scintilla.h"