display switch

This commit is contained in:
open-trade
2020-11-25 23:52:58 +08:00
parent 8583b6b140
commit dfb28e9e5e
2 changed files with 96 additions and 57 deletions

View File

@@ -34,6 +34,7 @@ class FfiModel with ChangeNotifier {
get permissions => _permissions;
get initialized => _initialized;
get pi => _pi;
FfiModel() {
clear();
@@ -118,6 +119,7 @@ class FfiModel with ChangeNotifier {
_display.width = int.parse(evt['width']);
_display.height = int.parse(evt['height']);
FFI.cursorModel.updateDisplayOrigin(_display.x, _display.y);
notifyListeners();
}
void handlePeerInfo(Map<String, dynamic> evt) {