mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
.CtrlCore: MetaFile patch (thanks mr_ped)
git-svn-id: svn://ultimatepp.org/upp/trunk@3090 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
62dcbf77db
commit
520cdec84e
2 changed files with 4 additions and 3 deletions
|
|
@ -93,7 +93,7 @@ struct PLACEABLE_METAFILEHEADER
|
|||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
void WinMetaFile::Set(const void *data, int len)
|
||||
void WinMetaFile::Set(const void *data, dword len)
|
||||
{
|
||||
Clear();
|
||||
|
||||
|
|
@ -106,7 +106,8 @@ void WinMetaFile::Set(const void *data, int len)
|
|||
if((hemf = ::SetEnhMetaFileBits(len, (const BYTE *)data)) != NULL)
|
||||
Attach(hemf);
|
||||
else
|
||||
if(first == 0x9AC6CDD7) {
|
||||
if(first == (int)0x9AC6CDD7) {
|
||||
if ( len <= 22 ) return;
|
||||
const PLACEABLE_METAFILEHEADER *mfh = (const PLACEABLE_METAFILEHEADER *)data;
|
||||
Attach(::SetWinMetaFileBits(len - 22, (const BYTE *)data + 22, NULL, NULL));
|
||||
size = 600 * Size(mfh->right - mfh->left, mfh->bottom - mfh->top) / 2540;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue