X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fbase%2Fapplications%2Fpaint%2Fdrawing.c;h=bb8d24a40a51e834933e44c97d7192740ee6b3be;hp=2bae28bce5369c077bfb284d30184c83d01c8af6;hb=7aa73a611070fa91bb4e66b5d5956a28fe6438db;hpb=2b1fbadac000dd057bb5fab42bd158a2cb67fa59 diff --git a/reactos/base/applications/paint/drawing.c b/reactos/base/applications/paint/drawing.c index 2bae28bce53..bb8d24a40a5 100644 --- a/reactos/base/applications/paint/drawing.c +++ b/reactos/base/applications/paint/drawing.c @@ -81,12 +81,13 @@ void Poly(HDC hdc, POINT *lpPoints, int nCount, int fg, int bg, int thickness, i void Bezier(HDC hdc, POINT p1, POINT p2, POINT p3, POINT p4, int color, int thickness) { + HPEN oldPen; POINT fourPoints[4]; fourPoints[0] = p1; fourPoints[1] = p2; fourPoints[2] = p3; fourPoints[3] = p4; - HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, color)); + oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, color)); PolyBezier(hdc, fourPoints, 4); DeleteObject(SelectObject(hdc, oldPen)); }