mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
flutter_desktop: set event func to async
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -28,10 +28,10 @@ Future<ui.Image> decodeImageFromPixels(
|
||||
pixelFormat: format,
|
||||
);
|
||||
if (!allowUpscaling) {
|
||||
if (targetWidth != null && targetWidth! > descriptor.width) {
|
||||
if (targetWidth != null && targetWidth > descriptor.width) {
|
||||
targetWidth = descriptor.width;
|
||||
}
|
||||
if (targetHeight != null && targetHeight! > descriptor.height) {
|
||||
if (targetHeight != null && targetHeight > descriptor.height) {
|
||||
targetHeight = descriptor.height;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user