Remove use of some deprecated functions on sky.Paint
We now expose idiomatic setters for these properties. Eventually we'll remove the setter functions.
This commit is contained in:
@@ -15,9 +15,9 @@ class StarField extends NodeWithSize {
|
||||
Size _paddedSize = Size.zero;
|
||||
|
||||
Paint _paint = new Paint()
|
||||
..setFilterQuality(sky.FilterQuality.low)
|
||||
..filterQuality = sky.FilterQuality.low
|
||||
..isAntiAlias = false
|
||||
..setTransferMode(sky.TransferMode.plus);
|
||||
..transferMode = sky.TransferMode.plus;
|
||||
|
||||
StarField(this._spriteSheet, this._numStars, [this._autoScroll = false]) : super(Size.zero) {
|
||||
_image = _spriteSheet.image;
|
||||
|
||||
@@ -75,7 +75,9 @@ class TestDrawAtlas extends NodeWithSize {
|
||||
colors,
|
||||
TransferMode.src,
|
||||
null,
|
||||
new Paint()..setFilterQuality(FilterQuality.low)..isAntiAlias=false
|
||||
new Paint()
|
||||
..filterQuality = FilterQuality.low
|
||||
..isAntiAlias = false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ class TestPerformanceAtlas extends PerformanceTest {
|
||||
double rotation = 0.0;
|
||||
List<Rect> rects = [];
|
||||
Paint cachedPaint = new Paint()
|
||||
..setFilterQuality(sky.FilterQuality.low)
|
||||
..filterQuality = sky.FilterQuality.low
|
||||
..isAntiAlias = false;
|
||||
|
||||
TestPerformanceAtlas() {
|
||||
@@ -262,7 +262,7 @@ class TestPerformanceAtlas2 extends PerformanceTest {
|
||||
double rotation = 0.0;
|
||||
List<Rect> rects = [];
|
||||
Paint cachedPaint = new Paint()
|
||||
..setFilterQuality(sky.FilterQuality.low)
|
||||
..filterQuality = sky.FilterQuality.low
|
||||
..isAntiAlias = false;
|
||||
|
||||
TestPerformanceAtlas2() {
|
||||
|
||||
Reference in New Issue
Block a user