From a1b0b90f08c7cee9767f43df5737afc9071a4e46 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 4 Jun 2023 21:06:51 +0800 Subject: [PATCH] fix blurry image, original scale, resizing window Signed-off-by: fufesou --- flutter/lib/desktop/pages/remote_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/lib/desktop/pages/remote_page.dart b/flutter/lib/desktop/pages/remote_page.dart index 59c744099..ab8e55798 100644 --- a/flutter/lib/desktop/pages/remote_page.dart +++ b/flutter/lib/desktop/pages/remote_page.dart @@ -541,8 +541,8 @@ class _ImagePaintState extends State { imageWidget = Stack( children: [ Positioned( - left: c.x, - top: c.y, + left: c.x.toInt().toDouble(), + top: c.y.toInt().toDouble(), width: c.getDisplayWidth() * s, height: c.getDisplayHeight() * s, child: Texture(textureId: widget.textureId.value),