mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
cleaning up formating and making a single paint var
This commit is contained in:
@ -24,6 +24,9 @@ class TextBoxConfig {
|
||||
}
|
||||
|
||||
class TextBoxComponent extends PositionComponent with Resizable {
|
||||
static final Paint _imagePaint =
|
||||
BasicPalette.white.paint..filterQuality = FilterQuality.high;
|
||||
|
||||
Position p = Position.empty();
|
||||
|
||||
String _text;
|
||||
@ -132,9 +135,7 @@ class TextBoxComponent extends PositionComponent with Resizable {
|
||||
return;
|
||||
}
|
||||
prepareCanvas(c);
|
||||
c.drawImage(_cache,
|
||||
Offset.zero,
|
||||
BasicPalette.white.paint..filterQuality = FilterQuality.high);
|
||||
c.drawImage(_cache, Offset.zero, _imagePaint);
|
||||
}
|
||||
|
||||
Future<Image> _redrawCache() {
|
||||
|
||||
Reference in New Issue
Block a user