Merge pull request #4544 from fufesou/fix/blurry_image

fix blurry image, original scale, resizing window
This commit is contained in:
RustDesk 2023-06-04 21:08:23 +08:00 committed by GitHub
commit acb4bb9d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,8 +541,8 @@ class _ImagePaintState extends State<ImagePaint> {
imageWidget = Stack( imageWidget = Stack(
children: [ children: [
Positioned( Positioned(
left: c.x, left: c.x.toInt().toDouble(),
top: c.y, top: c.y.toInt().toDouble(),
width: c.getDisplayWidth() * s, width: c.getDisplayWidth() * s,
height: c.getDisplayHeight() * s, height: c.getDisplayHeight() * s,
child: Texture(textureId: widget.textureId.value), child: Texture(textureId: widget.textureId.value),