diff --git a/dll/win32/gdiplus/graphics.c b/dll/win32/gdiplus/graphics.c index 5666346afc..76426433ee 100644 --- a/dll/win32/gdiplus/graphics.c +++ b/dll/win32/gdiplus/graphics.c @@ -7010,14 +7010,18 @@ GpStatus WINGDIPAPI GdipTransformPointsI(GpGraphics *graphics, GpCoordinateSpace HPALETTE WINGDIPAPI GdipCreateHalftonePalette(void) { - static int calls; - - TRACE("\n"); + HDC hdc; + HPALETTE hPalette = NULL; + TRACE("()\n"); - if (!calls++) - FIXME("stub\n"); + hdc = CreateCompatibleDC(NULL); + if (hdc) + { + hPalette = CreateHalftonePalette(hdc); + DeleteDC(hdc); + } - return NULL; + return hPalette; } /*****************************************************************************