From 559f8982ac4f59360ef1abf1d32dcef4e2c784d1 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Fri, 28 Oct 2016 22:10:27 -0400 Subject: [PATCH] Logo aspect fit --- src/AppFrame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 8f7cb21..392d277 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -80,6 +80,7 @@ AppFrame::AppFrame() : headerPath += filePathSeparator + std::string("" CUBICSDR_HEADER_IMAGE); wxInitAllImageHandlers(); wxStaticBitmap *headerImgStatic = new wxStaticBitmap(demodPanel, wxID_ANY, wxBitmap( headerPath, wxBITMAP_TYPE_ANY )); + headerImgStatic->SetScaleMode(wxStaticBitmapBase::ScaleMode::Scale_AspectFit); std::string headerBgColor = "" CUBICSDR_HEADER_BG; if (headerBgColor != "") { demodPanel->SetBackgroundColour(wxColour(headerBgColor));