mirror of https://github.com/axmolengine/axmol.git
fixed stroke font color with channel color values other than 255
This commit is contained in:
parent
2ff3655fff
commit
86b2ce33af
|
@ -172,7 +172,7 @@ public class Cocos2dxBitmap {
|
|||
final Paint paintStroke = Cocos2dxBitmap.newPaint(pFontName, pFontSize, horizontalAlignment);
|
||||
paintStroke.setStyle(Paint.Style.STROKE);
|
||||
paintStroke.setStrokeWidth(strokeSize * 0.5f);
|
||||
paintStroke.setARGB(255, (int)strokeR * 255, (int)strokeG * 255, (int)strokeB * 255);
|
||||
paintStroke.setARGB(255, (int) (strokeR * 255), (int) (strokeG * 255), (int) (strokeB * 255));
|
||||
|
||||
x = 0;
|
||||
y = Cocos2dxBitmap.computeY(fontMetricsInt, pHeight, textProperty.mTotalHeight, verticalAlignment);
|
||||
|
|
Loading…
Reference in New Issue