mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Disables anti alias for sprite drawing
This commit is contained in:
parent
267404d456
commit
4ff5339a9a
@ -29,7 +29,9 @@ class Sprite extends NodeWithSize {
|
||||
/// mySprite.transferMode = TransferMode.plusMode;
|
||||
TransferMode transferMode;
|
||||
|
||||
Paint _cachedPaint = new Paint();
|
||||
Paint _cachedPaint = new Paint()
|
||||
..setFilterQuality(FilterQuality.low)
|
||||
..isAntiAlias = false;
|
||||
|
||||
/// Creates a new sprite from the provided [texture].
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user