gdi32: Make the EMF driver return sane NUMCOLORS value.

This commit is contained in:
Dmitry Timoshkov 2007-03-27 16:54:49 +09:00 committed by Alexandre Julliard
parent 7bf7cdd1a9
commit dab3825b18
3 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -46,6 +46,7 @@ typedef struct
INT rastercaps;
INT technology;
INT planes;
INT numcolors;
} EMFDRV_PDEVICE;

View File

@ -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;