Support TopDown CheckBitmap
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7084 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
788620866d
commit
40451b29d7
5 changed files with 8 additions and 4 deletions
|
@ -770,6 +770,8 @@ bool CResourceEditor::AddExtraIconFromFile(const WINWCHAR* Type, WINWCHAR* Name,
|
|||
GENERICIMAGEINFO info;
|
||||
if (/*!IsPNGFile(pImg, imgSize, &info) &&*/ !GetDIBHeaderInfo(pImg, imgSize, info)) // Are PNG cursor images allowed?
|
||||
goto fail;
|
||||
//if (info.RawHeight != info.Height && isDib)
|
||||
// goto fail; // Are TopDown DIBs allowed? Probably not but we play it safe.
|
||||
|
||||
typedef struct { WORD x, y; } CURSORIMGHDR; //msdn.microsoft.com/en-us/library/windows/desktop/ms648017(v=vs.85).aspx
|
||||
pCursor = new BYTE[imgSize + 4];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue