Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Hparty committed Oct 29, 2024
1 parent b8d02a8 commit b3076a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gpu/opengl/GLBlend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/layers/ImageLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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> ImageLayer::Make() {
Expand Down

0 comments on commit b3076a3

Please sign in to comment.