From bb8dba07ee6269a51dcbcddbbbcd6a53456bbec5 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 17 Sep 2015 11:51:40 +0000 Subject: [PATCH] .reference git-svn-id: svn://ultimatepp.org/upp/trunk@8943 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- reference/CoWork/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/CoWork/main.cpp b/reference/CoWork/main.cpp index 1d72ff6ef..39f6d14ee 100644 --- a/reference/CoWork/main.cpp +++ b/reference/CoWork/main.cpp @@ -65,7 +65,7 @@ void App::Paint(Draw& w) for(int y = 0; y < sz.cy; y++) { #ifdef CPP_11 RGBA *line = ib[y]; - co & lambda([=] { + co & [=] { Point c = sz / 2; c = Point(int(sin((double)phase / 131) * c.x + c.x), int(sin((double)phase / 127) * c.y + c.y)); int yy = (y - c.y) * (y - c.y); @@ -73,7 +73,7 @@ void App::Paint(Draw& w) double d = (x - c.x) * (x - c.x) + yy; line[x] = GrayColor((int)(120 + 120 * sin(d / 1000 - (double)phase / 5))); } - }); + }; #else co & callback4(DoLine, ib[y], phase, y, sz); #endif