From 6dc67fd0d01f9eb8514e53ca974748cc34ee613a Mon Sep 17 00:00:00 2001
From: Adam Petaccia <adam@tpetaccia.com>
Date: Wed, 27 Aug 2008 17:21:39 -0400
Subject: [PATCH] gdiplus: Stub GdipGetFontStyle.

---
 dlls/gdiplus/font.c       | 7 +++++++
 dlls/gdiplus/gdiplus.spec | 2 +-
 include/gdiplusflat.h     | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 6ed18aee73..a38fb0b5f7 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -295,6 +295,13 @@ GpStatus WINGDIPAPI GdipGetFontSize(GpFont *font, REAL *size)
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipGetFontStyle(GpFont *font, INT *style)
+{
+    FIXME("stub: %p %p\n", font, style);
+
+    return NotImplemented;
+}
+
 /*******************************************************************************
  * GdipGetFontUnit  [GDIPLUS.@]
  *
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 3cf9544d7f..3766dc1d0d 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -270,7 +270,7 @@
 @ stub GdipGetFontHeight
 @ stdcall GdipGetFontHeightGivenDPI(ptr long ptr)
 @ stdcall GdipGetFontSize(ptr ptr)
-@ stub GdipGetFontStyle
+@ stdcall GdipGetFontStyle(ptr ptr)
 @ stdcall GdipGetFontUnit(ptr ptr)
 @ stdcall GdipGetGenericFontFamilyMonospace(ptr)
 @ stdcall GdipGetGenericFontFamilySansSerif(ptr)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 37476d8cfb..320f02d8f7 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -437,6 +437,7 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
 GpStatus WINGDIPAPI GdipGetFamily(GpFont*, GpFontFamily**);
 GpStatus WINGDIPAPI GdipGetFontUnit(GpFont*, Unit*);
 GpStatus WINGDIPAPI GdipGetFontSize(GpFont*, REAL*);
+GpStatus WINGDIPAPI GdipGetFontStyle(GpFont*, INT*);
 GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont*, REAL, REAL*);
 
 GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
-- 
2.32.0.93.g670b81a890