Nikolay Sivov : gdiplus: Added GdipSetTextContrast.
Alexandre Julliard
julliard at winehq.org
Mon Nov 10 07:43:54 CST 2008
Module: wine
Branch: master
Commit: 71264731a4e447f8006bd3d9f097d93f49706e07
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71264731a4e447f8006bd3d9f097d93f49706e07
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun Nov 9 14:38:16 2008 +0300
gdiplus: Added GdipSetTextContrast.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphics.c | 12 ++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 0a29c10..c25d4b7 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -593,7 +593,7 @@
@ stdcall GdipSetStringFormatMeasurableCharacterRanges(ptr long ptr)
@ stdcall GdipSetStringFormatTabStops(ptr long long ptr)
@ stdcall GdipSetStringFormatTrimming(ptr long)
-@ stub GdipSetTextContrast
+@ stdcall GdipSetTextContrast(ptr long)
@ stdcall GdipSetTextRenderingHint(ptr long)
@ stdcall GdipSetTextureTransform(ptr ptr)
@ stdcall GdipSetTextureWrapMode(ptr long)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 764e9ac..fa90d73 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2954,6 +2954,18 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mod
return Ok;
}
+GpStatus WINGDIPAPI GdipSetTextContrast(GpGraphics *graphics, UINT contrast)
+{
+ TRACE("(%p, %d)\n", graphics, contrast);
+
+ if(!graphics)
+ return InvalidParameter;
+
+ graphics->textcontrast = contrast;
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics *graphics,
TextRenderingHint hint)
{
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index b8f14e1..ea4bec5 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -231,6 +231,7 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics*,REAL);
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
+GpStatus WINGDIPAPI GdipSetTextContrast(GpGraphics*,UINT);
GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics*,TextRenderingHint);
GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics*,GpMatrix*);
GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics*, GpCoordinateSpace, GpCoordinateSpace,
More information about the wine-cvs
mailing list