[PATCH] gdi32: Add D3DKMTSetQueuedLimit() stub.

Chip Davis cdavis at codeweavers.com
Tue Jan 28 10:53:09 CST 2020


January 28, 2020 4:24 AM, "Huw Davies" <huw at codeweavers.com> wrote:

>> + D3DKMT_GET_QUEUEDLIMIT_PRESENT
>> +} D3DKMT_QUEUEDLIMIT_TYPE;
>> +
>> +typedef struct _D3DKMT_SETQUEUEDLIMIT
>> +{
>> + D3DKMT_HANDLE hDevice;
>> + D3DKMT_QUEUEDLIMIT_TYPE Type;
>> + union
>> + {
>> + UINT QueuedPresentLimit;
>> + struct
>> + {
>> + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
>> + UINT QueuedPendingFlipLimit;
>> + };
>> + };
>> +} D3DKMT_SETQUEUEDLIMIT;
>> +
>> #ifdef __cplusplus
>> extern "C"
>> {
>> @@ -610,6 +631,7 @@ NTSTATUS WINAPI D3DKMTDestroyDCFromMemory(const D3DKMT_DESTROYDCFROMMEMORY
>> *desc
>> NTSTATUS WINAPI D3DKMTDestroyDevice(const D3DKMT_DESTROYDEVICE *desc);
>> NTSTATUS WINAPI D3DKMTOpenAdapterFromGdiDisplayName(D3DKMT_OPENADAPTERFROMGDIDISPLAYNAME *desc);
>> NTSTATUS WINAPI D3DKMTQueryStatistics(D3DKMT_QUERYSTATISTICS *stats);
>> +NTSTATUS WINAPI D3DKMTSetQueuedLimit(D3DKMT_SETQUEUEDLIMIT *desc);
> 
> Missing const.

This is an in/out parameter. Confusingly, it can also be used to get the limit.


Chip



More information about the wine-devel mailing list