gdiplus: Make brush parameter const in brush object serialize helpers.

Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Shawn M. Chapla 2020-07-13 15:16:59 -04:00 committed by Alexandre Julliard
parent b1f2432505
commit 313c27ad2a
1 changed files with 3 additions and 3 deletions

View File

@ -1001,7 +1001,7 @@ static BOOL is_integer_rect(const GpRectF *rect)
return TRUE;
}
static GpStatus METAFILE_PrepareBrushData(GpBrush *brush, DWORD *size)
static GpStatus METAFILE_PrepareBrushData(GDIPCONST GpBrush *brush, DWORD *size)
{
switch (brush->bt)
{
@ -1019,7 +1019,7 @@ static GpStatus METAFILE_PrepareBrushData(GpBrush *brush, DWORD *size)
return Ok;
}
static void METAFILE_FillBrushData(GpBrush *brush, EmfPlusBrush *data)
static void METAFILE_FillBrushData(GDIPCONST GpBrush *brush, EmfPlusBrush *data)
{
data->Version = VERSION_MAGIC2;
data->Type = brush->bt;
@ -1045,7 +1045,7 @@ static void METAFILE_FillBrushData(GpBrush *brush, EmfPlusBrush *data)
}
}
static GpStatus METAFILE_AddBrushObject(GpMetafile *metafile, GpBrush *brush, DWORD *id)
static GpStatus METAFILE_AddBrushObject(GpMetafile *metafile, GDIPCONST GpBrush *brush, DWORD *id)
{
EmfPlusObject *object_record;
GpStatus stat;