From 4f0f784532c670de54733420e173682245bb303b Mon Sep 17 00:00:00 2001 From: fufesou Date: Sat, 12 Sep 2026 02:47:37 +0800 Subject: [PATCH] feat(cursor): carry the remote bitmap pixel density --- libs/base/protos/message.proto | 2 ++ src/flutter.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/libs/base/protos/message.proto b/libs/base/protos/message.proto index 1276deaa8..c4caa6c3f 100644 --- a/libs/base/protos/message.proto +++ b/libs/base/protos/message.proto @@ -316,6 +316,8 @@ message CursorData { int32 width = 4; int32 height = 5; bytes colors = 6; + // Physical bitmap pixels per remote logical pixel; 0 means an older sender. + double scale = 7; } message CursorPosition { diff --git a/src/flutter.rs b/src/flutter.rs index a6d3496dd..f745dbe91 100644 --- a/src/flutter.rs +++ b/src/flutter.rs @@ -651,6 +651,7 @@ impl InvokeUiSession for FlutterHandler { ("hoty", &cd.hoty.to_string()), ("width", &cd.width.to_string()), ("height", &cd.height.to_string()), + ("scale", &cd.scale.to_string()), ( "colors", &serde_json::ser::to_string(&colors).unwrap_or("".to_owned()),