mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-04 11:59:18 +08:00
commit
738966b1a0
@ -561,11 +561,11 @@ class ImagePainter extends CustomPainter {
|
|||||||
void paint(Canvas canvas, Size size) {
|
void paint(Canvas canvas, Size size) {
|
||||||
if (image == null) return;
|
if (image == null) return;
|
||||||
if (x.isNaN || y.isNaN) return;
|
if (x.isNaN || y.isNaN) return;
|
||||||
canvas.scale(scale, scale);
|
|
||||||
// https://github.com/flutter/flutter/issues/76187#issuecomment-784628161
|
// https://github.com/flutter/flutter/issues/76187#issuecomment-784628161
|
||||||
// https://api.flutter-io.cn/flutter/dart-ui/FilterQuality.html
|
// https://api.flutter-io.cn/flutter/dart-ui/FilterQuality.html
|
||||||
var paint = Paint();
|
var paint = Paint();
|
||||||
if ((scale - 1.0).abs() > 0.001) {
|
if ((scale - 1.0).abs() > 0.001) {
|
||||||
|
canvas.scale(scale, scale);
|
||||||
paint.filterQuality = FilterQuality.medium;
|
paint.filterQuality = FilterQuality.medium;
|
||||||
if (scale > 10.00000) {
|
if (scale > 10.00000) {
|
||||||
paint.filterQuality = FilterQuality.high;
|
paint.filterQuality = FilterQuality.high;
|
||||||
|
Loading…
Reference in New Issue
Block a user