An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
update flutter texture rgba renderer plugin, remove switch rgba (#10070)
21pages9d9b67aca58e
diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dartindex fdcd28f8d..e5cde939f 100644--- a/flutter/lib/models/model.dart+++ b/flutter/lib/models/model.dart@@ -1268,7 +1268,9 @@ class ImageModel with ChangeNotifier {rgba,rect?.width.toInt() ?? 0,rect?.height.toInt() ?? 0,- isWeb ? ui.PixelFormat.rgba8888 : ui.PixelFormat.bgra8888,+ isWeb | isWindows | isLinux+ ? ui.PixelFormat.rgba8888+ : ui.PixelFormat.bgra8888,);if (parent.target?.id != pid) return;await update(image);diff --git a/flutter/pubspec.lock b/flutter/pubspec.lockindex 7c60e037a..31f04ce40 100644--- a/flutter/pubspec.lock+++ b/flutter/pubspec.lock@@ -1277,10 +1277,11 @@ packages:texture_rgba_renderer:dependency: "direct main"description:- name: texture_rgba_renderer- sha256: cb048abdd800468ca40749ca10d1db9d1e6a055d1cde6234c05191293f0c7d61- url: "https://pub.dev"- source: hosted+ path: "."+ ref: "42797e0f03141dc2b585f76c64a13974508058b4"+ resolved-ref: "42797e0f03141dc2b585f76c64a13974508058b4"+ url: "https://github.com/rustdesk-org/flutter_texture_rgba_renderer"+ source: gitversion: "0.0.16"timing:dependency: transitivediff --git a/flutter/pubspec.yaml b/flutter/pubspec.yamlindex afe09a0dc..bec58a4d6 100644--- a/flutter/pubspec.yaml+++ b/flutter/pubspec.yaml@@ -91,7 +91,10 @@ dependencies:password_strength: ^0.2.0flutter_launcher_icons: ^0.13.1flutter_keyboard_visibility: ^5.4.0- texture_rgba_renderer: ^0.0.16+ texture_rgba_renderer:+ git:+ url: https://github.com/rustdesk-org/flutter_texture_rgba_renderer+ ref: 42797e0f03141dc2b585f76c64a13974508058b4percent_indicator: ^4.2.2dropdown_button2: ^2.0.0flutter_gpu_texture_renderer:diff --git a/src/client.rs b/src/client.rsindex 474c7fdfc..4ff2c6b52 100644--- a/src/client.rs+++ b/src/client.rs@@ -1188,9 +1188,15 @@ impl VideoHandler {pub fn new(format: CodecFormat, _display: usize) -> Self {let luid = Self::get_adapter_luid();log::info!("new video handler for display #{_display}, format: {format:?}, luid: {luid:?}");+ let rgba_format =+ if cfg!(feature = "flutter") && (cfg!(windows) || cfg!(target_os = "linux")) {+ ImageFormat::ABGR+ } else {+ ImageFormat::ARGB+ };VideoHandler {decoder: Decoder::new(format, luid),- rgb: ImageRgb::new(ImageFormat::ARGB, crate::get_dst_align_rgba()),+ rgb: ImageRgb::new(rgba_format, crate::get_dst_align_rgba()),texture: Default::default(),recorder: Default::default(),record: false,