Set cbBits in the EMRCREATEDIBPATTERNBRUSHPT structure when writing an
EMF record.
This commit is contained in:
parent
0fc0ef2570
commit
368fab1432
|
@ -85,6 +85,7 @@ DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush )
|
||||||
emr->offBmi = sizeof(EMRCREATEDIBPATTERNBRUSHPT);
|
emr->offBmi = sizeof(EMRCREATEDIBPATTERNBRUSHPT);
|
||||||
emr->cbBmi = biSize;
|
emr->cbBmi = biSize;
|
||||||
emr->offBits = sizeof(EMRCREATEDIBPATTERNBRUSHPT) + biSize;
|
emr->offBits = sizeof(EMRCREATEDIBPATTERNBRUSHPT) + biSize;
|
||||||
|
emr->cbBits = bmSize;
|
||||||
memcpy((char *)emr + sizeof(EMRCREATEDIBPATTERNBRUSHPT), info,
|
memcpy((char *)emr + sizeof(EMRCREATEDIBPATTERNBRUSHPT), info,
|
||||||
biSize + bmSize );
|
biSize + bmSize );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue