Commit dab3825b authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32: Make the EMF driver return sane NUMCOLORS value.

parent 7bf7cdd1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment