Module: wine Branch: master Commit: 8ec2354b32ac2d807c453ad9620869afadd96184 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8ec2354b32ac2d807c453ad962...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Feb 18 11:38:06 2013 +0800
gdiplus: Forward GdipDrawLinesI to GdipDrawLines.
---
dlls/gdiplus/graphics.c | 21 ++------------------- 1 files changed, 2 insertions(+), 19 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index bc8b7da..b9aa912 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -3576,25 +3576,12 @@ GpStatus WINGDIPAPI GdipDrawLines(GpGraphics *graphics, GpPen *pen, GDIPCONST GpStatus WINGDIPAPI GdipDrawLinesI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count) { - INT save_state; GpStatus retval; - GpPointF *ptf = NULL; + GpPointF *ptf; int i;
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
- if(!pen || !graphics || (count < 2)) - return InvalidParameter; - - if(graphics->busy) - return ObjectBusy; - - if (!graphics->hdc) - { - FIXME("graphics object has no HDC\n"); - return Ok; - } - ptf = GdipAlloc(count * sizeof(GpPointF)); if(!ptf) return OutOfMemory;
@@ -3603,11 +3590,7 @@ GpStatus WINGDIPAPI GdipDrawLinesI(GpGraphics *graphics, GpPen *pen, GDIPCONST ptf[i].Y = (REAL) points[i].Y; }
- save_state = prepare_dc(graphics, pen); - - retval = draw_polyline(graphics, pen, ptf, count, TRUE); - - restore_dc(graphics, save_state); + retval = GdipDrawLines(graphics, pen, ptf, count);
GdipFree(ptf); return retval;