From 556c976b8f1d84ad35229a09326fe667d3db09ed Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 14 Apr 2005 13:57:55 +0000 Subject: [PATCH] Implement GdiIs*DC functions. --- dlls/gdi/dc.c | 34 ++++++++++++++++++++++++++++++++++ dlls/gdi/gdi32.spec | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/dlls/gdi/dc.c b/dlls/gdi/dc.c index 077ec532da4..1d6f6d3f094 100644 --- a/dlls/gdi/dc.c +++ b/dlls/gdi/dc.c @@ -2138,3 +2138,37 @@ BOOL WINAPI SetMiterLimit(HDC hdc, FLOAT eNewLimit, PFLOAT peOldLimit) } return bRet; } + +/******************************************************************* + * GdiIsMetaPrintDC [GDI32.@] + */ +BOOL WINAPI GdiIsMetaPrintDC(HDC hdc) +{ + FIXME("%p\n", hdc); + return FALSE; +} + +/******************************************************************* + * GdiIsMetaFileDC [GDI32.@] + */ +BOOL WINAPI GdiIsMetaFileDC(HDC hdc) +{ + TRACE("%p\n", hdc); + + switch( GetObjectType( hdc ) ) + { + case OBJ_METADC: + case OBJ_ENHMETADC: + return TRUE; + } + return FALSE; +} + +/******************************************************************* + * GdiIsPlayMetafileDC [GDI32.@] + */ +BOOL WINAPI GdiIsPlayMetafileDC(HDC hdc) +{ + FIXME("%p\n", hdc); + return FALSE; +} diff --git a/dlls/gdi/gdi32.spec b/dlls/gdi/gdi32.spec index c29d316cd22..397868e0591 100644 --- a/dlls/gdi/gdi32.spec +++ b/dlls/gdi/gdi32.spec @@ -160,7 +160,9 @@ @ stub GdiGetLocalDC @ stub GdiGetLocalFont @ stdcall GdiGradientFill(long ptr long ptr long long) -@ stub GdiIsMetaFileDC +@ stdcall GdiIsMetaFileDC(long) +@ stdcall GdiIsMetaPrintDC(long) +@ stdcall GdiIsPlayMetafileDC(long) @ stub GdiPlayDCScript @ stub GdiPlayJournal @ stub GdiPlayScript