merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user