From b3076a3c788214e15b8e945e0220320731b45de7 Mon Sep 17 00:00:00 2001 From: Hparty <420024556@qq.com> Date: Tue, 29 Oct 2024 19:54:18 +0800 Subject: [PATCH] code format --- src/gpu/opengl/GLBlend.cpp | 4 ++-- src/layers/ImageLayer.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu/opengl/GLBlend.cpp b/src/gpu/opengl/GLBlend.cpp index 53385c1..f4e62c0 100644 --- a/src/gpu/opengl/GLBlend.cpp +++ b/src/gpu/opengl/GLBlend.cpp @@ -315,8 +315,8 @@ static void BlendHandler_PlusDarker(FragmentShaderBuilder* fsBuilder, const char const char* dstColor, const char* outputColor) { // MAX(0, (1 - ((Da * (1 - Dc) + Sa * (1 - Sc))) // https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodeplusdarker - fsBuilder->codeAppendf("%s.rgb = clamp(1.0 + %s.rgb + %s.rgb - %s.a - %s.a, 0.0, 1.0);", outputColor, - srcColor, dstColor, dstColor, srcColor); + fsBuilder->codeAppendf("%s.rgb = clamp(1.0 + %s.rgb + %s.rgb - %s.a - %s.a, 0.0, 1.0);", + outputColor, srcColor, dstColor, dstColor, srcColor); fsBuilder->codeAppendf("%s.rgb *= (%s.a > 0.0) ? 1.0 : 0.0;", outputColor, outputColor); } diff --git a/src/layers/ImageLayer.cpp b/src/layers/ImageLayer.cpp index 2c21934..460438b 100644 --- a/src/layers/ImageLayer.cpp +++ b/src/layers/ImageLayer.cpp @@ -16,8 +16,8 @@ // ///////////////////////////////////////////////////////////////////////////////////////////////// -#include "layers/contents/ImageContent.h" #include "tgfx/layers/ImageLayer.h" +#include "layers/contents/ImageContent.h" namespace tgfx { std::shared_ptr ImageLayer::Make() {