X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5e84126fcb673217660170ab871738f21972b49..7f5f144a8143f02841ef9fa4662e25ef24038054:/src/generic/dragimgg.cpp?ds=inline diff --git a/src/generic/dragimgg.cpp b/src/generic/dragimgg.cpp index d625524ed3..8e89afe823 100644 --- a/src/generic/dragimgg.cpp +++ b/src/generic/dragimgg.cpp @@ -139,12 +139,12 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor) dc.SetFont(wxNullFont); wxMemoryDC dc2; - dc2.SetFont(font); // Sometimes GetTextExtent isn't accurate enough, so make it longer wxBitmap bitmap((int) ((w+2) * 1.5), (int) h+2); dc2.SelectObject(bitmap); + dc2.SetFont(font); dc2.SetBackground(* wxWHITE_BRUSH); dc2.Clear(); dc2.SetBackgroundMode(wxTRANSPARENT);