mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Vector2 for position and size on PositionComponent
This commit is contained in:
@ -148,7 +148,7 @@ class TextBoxComponent extends PositionComponent with Resizable {
|
||||
|
||||
Future<Image> _redrawCache() {
|
||||
final PictureRecorder recorder = PictureRecorder();
|
||||
final Canvas c = Canvas(recorder, toOriginRect());
|
||||
final Canvas c = Canvas(recorder, size.toRect());
|
||||
_fullRender(c);
|
||||
return recorder.endRecording().toImage(width.toInt(), height.toInt());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user