Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : 0001497: CD Descrizione Non esiste più una doppia versione e quindi un doppio cd per la parte lavanderire. Il prodotto si chiama "COGECO Silav". Allego loghi ed icone. git-svn-id: svn://10.65.10.50/trunk@19600 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e9805d9a3a
commit
9bc1a827a6
@ -1953,13 +1953,20 @@ CampoWizard::CampoWizard(wxWindow* pParent)
|
||||
nHeight = iLogo.GetHeight();
|
||||
}
|
||||
|
||||
const int nMax = 216;
|
||||
if (nWidth > nMax)
|
||||
const double nMaxWidth = 216;
|
||||
const double nMaxHeight = 600;
|
||||
|
||||
const double dScaleX = nMaxWidth / nWidth;
|
||||
const double dScaleY = nMaxHeight / nHeight;
|
||||
const double dScale = dScaleX < dScaleY ? dScaleX : dScaleY;
|
||||
|
||||
if (dScale < 1)
|
||||
{
|
||||
nHeight = nHeight * nMax / nWidth;
|
||||
nWidth = nMax;
|
||||
nHeight *= dScale;
|
||||
nWidth *= dScale;
|
||||
iLogo.Rescale(nWidth, nHeight, wxIMAGE_QUALITY_HIGH);
|
||||
}
|
||||
|
||||
const wxBitmap bitmap(iLogo);
|
||||
Create(pParent, wxID_ANY, PRODUCT, bitmap);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user