diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index d6b6ee49597..97655739998 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -490,7 +490,7 @@ @ stub GdipRotatePathGradientTransform @ stub GdipRotatePenTransform @ stub GdipRotateTextureTransform -@ stub GdipRotateWorldTransform +@ stdcall GdipRotateWorldTransform(ptr long long) @ stub GdipSaveAdd @ stub GdipSaveAddImage @ stdcall GdipSaveGraphics(ptr ptr) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index fecabfbdaae..250e337ab69 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1528,6 +1528,15 @@ GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState stat return NotImplemented; } +GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics *graphics, REAL angle, + GpMatrixOrder order) +{ + if(!graphics) + return InvalidParameter; + + return GdipRotateMatrix(graphics->worldtrans, angle, order); +} + GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state) { static int calls; diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 1b7f7ecfbe4..865362d327e 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -90,6 +90,7 @@ GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*); GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*); GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics*,GpMatrix*); GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState); +GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics*,REAL,GpMatrixOrder); GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics*,GraphicsState*); GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics*,CompositingMode); GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality);