summaryrefslogtreecommitdiff
path: root/ui/small_dlgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/small_dlgs.cpp')
-rw-r--r--ui/small_dlgs.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/small_dlgs.cpp b/ui/small_dlgs.cpp
index 4b070dce..2b6c9d4a 100644
--- a/ui/small_dlgs.cpp
+++ b/ui/small_dlgs.cpp
@@ -109,14 +109,10 @@ AboutDlg::AboutDlg(wxWindow* parent) : AboutDlgGenerated(parent)
bmpLogo = wxBitmap(tmp);
}
{
- wxMemoryDC dc;
- dc.SelectObject(bmpLogo);
-
+ wxMemoryDC dc(bmpLogo);
dc.SetTextForeground(*wxBLACK);
dc.SetFont(wxFont(18, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, L"Tahoma"));
dc.DrawLabel(wxString(L"FreeFileSync ") + zen::currentVersion, wxNullBitmap, wxRect(0, 0, bmpLogo.GetWidth(), bmpLogo.GetHeight()), wxALIGN_CENTER);
-
- dc.SelectObject(wxNullBitmap);
}
m_bitmap11->SetBitmap(bmpLogo);
bgstack15