mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 05:36:56 +00:00
gdi32: Make the EMF driver return sane NUMCOLORS value.
This commit is contained in:
parent
7bf7cdd1a9
commit
dab3825b18
@ -317,10 +317,10 @@ INT EMFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
|
||||
return physDev->technology;
|
||||
case PLANES:
|
||||
return physDev->planes;
|
||||
|
||||
case NUMCOLORS:
|
||||
return physDev->numcolors;
|
||||
default:
|
||||
FIXME("Unimplemented cap %d\n", cap);
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ typedef struct
|
||||
INT rastercaps;
|
||||
INT technology;
|
||||
INT planes;
|
||||
INT numcolors;
|
||||
} EMFDRV_PDEVICE;
|
||||
|
||||
|
||||
|
@ -356,6 +356,7 @@ HDC WINAPI CreateEnhMetaFileW(
|
||||
physDev->rastercaps = GetDeviceCaps(hRefDC, RASTERCAPS);
|
||||
physDev->technology = GetDeviceCaps(hRefDC, TECHNOLOGY);
|
||||
physDev->planes = GetDeviceCaps(hRefDC, PLANES);
|
||||
physDev->numcolors = GetDeviceCaps(hRefDC, NUMCOLORS);
|
||||
|
||||
physDev->emh->iType = EMR_HEADER;
|
||||
physDev->emh->nSize = size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user