From 1398361341435df0a8a775a583efe119c4d8ae0e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 9 Apr 2008 13:14:45 -0700 Subject: [PATCH 10/22] gdiplus: add a stub for GdipSetImageAttributesGamma. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/imageattributes.c | 11 +++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 13 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 0c2ae87..1c4b727 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -524,7 +524,7 @@ @ stdcall GdipSetImageAttributesCachedBackground(ptr long) @ stdcall GdipSetImageAttributesColorKeys(ptr long long long long) @ stdcall GdipSetImageAttributesColorMatrix(ptr long long ptr ptr long) -@ stub GdipSetImageAttributesGamma +@ stdcall GdipSetImageAttributesGamma(ptr long long long) @ stub GdipSetImageAttributesNoOp @ stub GdipSetImageAttributesOutputChannel @ stub GdipSetImageAttributesOutputChannelColorProfile diff --git a/dlls/gdiplus/imageattributes.c b/dlls/gdiplus/imageattributes.c index 4b08151..ab47d1d 100644 --- a/dlls/gdiplus/imageattributes.c +++ b/dlls/gdiplus/imageattributes.c @@ -101,3 +101,14 @@ GpStatus WINGDIPAPI GdipSetImageAttributesCachedBackground(GpImageAttributes *im return NotImplemented; } + +GpStatus WINGDIPAPI GdipSetImageAttributesGamma(GpImageAttributes *imageAttr, + ColorAdjustType type, BOOL enableFlag, REAL gamma) +{ + static int calls; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index e92c646..959c4cf 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -317,6 +317,7 @@ GpStatus WINGDIPAPI GdipSetStringFormatHotkeyPrefix(GpStringFormat*,INT); GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment); GpStatus WINGDIPAPI GdipSetStringFormatTrimming(GpStringFormat*,StringTrimming); + #ifdef __cplusplus } #endif -- 1.5.3.6