Skip to content

Commit

Permalink
Fix in fxgraphiccontrol.pas for alpha in Colorize
Browse files Browse the repository at this point in the history
  • Loading branch information
lainz committed Oct 25, 2016
1 parent 03b6af0 commit d0aab0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fxgraphiccontrol.pas
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ procedure TFXGraphicControl.Colorize(Source, Dest: TBGRABitmap; c: TBGRAPixel);
pdest^.red := GammaCompressionTab[((GammaExpansionTab[psource^.red]*ec.red+65535) shr 16)];
pdest^.green := GammaCompressionTab[((GammaExpansionTab[psource^.green]*ec.green+65535) shr 16)];
pdest^.blue := GammaCompressionTab[((GammaExpansionTab[psource^.blue]*ec.blue+65535) shr 16)];
pdest^.alpha := psource^.alpha; //(pdest^.alpha*ec.alpha+255) shr 16;
pdest^.alpha := (psource^.alpha*ec.alpha+255) shr 16;
inc(pdest);
inc(psource);
end;
Expand Down

0 comments on commit d0aab0e

Please sign in to comment.