This commit is contained in:
Branimir Karadžić 2016-08-10 21:51:29 -07:00
parent 2c861766e8
commit a488207c81
1 changed files with 4 additions and 7 deletions

View File

@ -250,14 +250,11 @@ static void nvg__setDevicePixelRatio(NVGcontext* ctx, float ratio)
static NVGcompositeOperationState nvg__compositeOperationState(int op)
{
int sfactor, dfactor;
// NVG_SOURCE_OVER
int sfactor = NVG_ONE;
int dfactor = NVG_ONE_MINUS_SRC_ALPHA;
if (op == NVG_SOURCE_OVER)
{
sfactor = NVG_ONE;
dfactor = NVG_ONE_MINUS_SRC_ALPHA;
}
else if (op == NVG_SOURCE_IN)
if (op == NVG_SOURCE_IN)
{
sfactor = NVG_DST_ALPHA;
dfactor = NVG_ZERO;