AddBrandingImage now supports dialog units, even on POSIX
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7033 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
993b491786
commit
48703ab513
6 changed files with 45 additions and 30 deletions
|
@ -124,6 +124,7 @@ public:
|
|||
void MoveAll(short x, short y);
|
||||
void Resize(short x, short y);
|
||||
#ifdef _WIN32
|
||||
static inline bool SupportsDialogUnitComputation() { return true; }
|
||||
void PixelsToDlgUnits(short& x, short& y);
|
||||
void PixelsToDlgUnits(SIZE& siz);
|
||||
void DlgUnitsToPixels(short& x, short& y);
|
||||
|
@ -131,6 +132,10 @@ public:
|
|||
void RTrimToString(WORD id, TCHAR *str, int margins);
|
||||
void LTrimToString(WORD id, TCHAR *str, int margins);
|
||||
void CTrimToString(WORD id, TCHAR *str, int margins);
|
||||
#else
|
||||
static inline bool SupportsDialogUnitComputation() { return false; }
|
||||
inline void PixelsToDlgUnits(short& x, short& y) { assert(0); }
|
||||
inline void DlgUnitsToPixels(short& x, short& y) { assert(0); }
|
||||
#endif
|
||||
void ConvertToRTL();
|
||||
BYTE* Save(DWORD& dwSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue