mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-18 02:10:59 +03:00
fix(cursor): address sizing and capture review findings
This commit is contained in:
@@ -101,7 +101,8 @@ bool FlutterWindow::OnCreate() {
|
||||
return false;
|
||||
}
|
||||
RegisterPlugins(flutter_controller_->engine());
|
||||
cursor_size::Register(flutter_controller_->engine()->messenger());
|
||||
cursor_size::Register(flutter_controller_->engine()->messenger(),
|
||||
flutter_controller_->view()->GetNativeWindow());
|
||||
|
||||
flutter::MethodChannel<> channel(
|
||||
flutter_controller_->engine()->messenger(),
|
||||
@@ -148,7 +149,8 @@ bool FlutterWindow::OnCreate() {
|
||||
auto *flutter_view_controller =
|
||||
reinterpret_cast<flutter::FlutterViewController *>(controller);
|
||||
auto *registry = flutter_view_controller->engine();
|
||||
cursor_size::Register(registry->messenger());
|
||||
cursor_size::Register(registry->messenger(),
|
||||
flutter_view_controller->view()->GetNativeWindow());
|
||||
TextureRgbaRendererPluginCApiRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("TextureRgbaRendererPlugin"));
|
||||
FlutterGpuTextureRendererPluginCApiRegisterWithRegistrar(
|
||||
|
||||
Reference in New Issue
Block a user