gdi32: Pass correct pointer to PolyDraw during EMR_POLYDRAW playback.
Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
666f614f3f
commit
84d2cf02ed
|
@ -1622,9 +1622,12 @@ BOOL WINAPI PlayEnhMetaFileRecord(
|
|||
case EMR_POLYDRAW:
|
||||
{
|
||||
const EMRPOLYDRAW *lpPolyDraw = (const EMRPOLYDRAW *)mr;
|
||||
|
||||
/* NB abTypes array doesn't start at lpPolyDraw->abTypes. It's actually
|
||||
lpPolyDraw->aptl + lpPolyDraw->cptl. */
|
||||
PolyDraw( hdc,
|
||||
(const POINT*)lpPolyDraw->aptl,
|
||||
lpPolyDraw->abTypes,
|
||||
(BYTE*)(lpPolyDraw->aptl + lpPolyDraw->cptl),
|
||||
(INT)lpPolyDraw->cptl );
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue