mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 12:29:04 +08:00
trivial changes
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
b8cc4a37ba
commit
042a2bff90
@ -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