Logo aspect fit

This commit is contained in:
Charles J. Cliffe 2016-10-28 22:10:27 -04:00
parent 979e5b709c
commit 559f8982ac
1 changed files with 1 additions and 0 deletions

View File

@ -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));