sw_engine Renderer: Fix build problem caused by merge conflict.
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 19 Feb 2021 08:28:17 +0000 (17:28 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 19 Feb 2021 08:35:30 +0000 (17:35 +0900)
src/lib/sw_engine/tvgSwRenderer.cpp

index 94e8bc3..5afaf7e 100644 (file)
@@ -336,9 +336,10 @@ bool SwRenderer::renderShape(RenderData data)
     if (auto strokeFill = task->sdata->strokeFill()) {
         rasterGradientStroke(surface, &task->shape, strokeFill->id());
     } else {
-    if (task->sdata->strokeColor(&r, &g, &b, &a) == Result::Success) {
-        a = static_cast<uint8_t>((opacity * (uint32_t) a) / 255);
-        if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a);
+        if (task->sdata->strokeColor(&r, &g, &b, &a) == Result::Success) {
+            a = static_cast<uint8_t>((opacity * (uint32_t) a) / 255);
+            if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a);
+        }
     }
 
     if (task->cmpStroking) endComposite(cmp);