zoom remote cursor when view style is original
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
aafc2e0a8e
commit
d511d1e27a
@ -644,15 +644,8 @@ class CursorPaint extends StatelessWidget {
|
|||||||
double x = (m.x - hotx) * c.scale + cx;
|
double x = (m.x - hotx) * c.scale + cx;
|
||||||
double y = (m.y - hoty) * c.scale + cy;
|
double y = (m.y - hoty) * c.scale + cy;
|
||||||
double scale = 1.0;
|
double scale = 1.0;
|
||||||
bool shouldScale = false;
|
|
||||||
if (Platform.isWindows) {
|
|
||||||
final isViewAdaptive = c.viewStyle.style == kRemoteViewStyleAdaptive;
|
|
||||||
shouldScale = zoomCursor.value && isViewAdaptive;
|
|
||||||
} else {
|
|
||||||
final isViewOriginal = c.viewStyle.style == kRemoteViewStyleOriginal;
|
final isViewOriginal = c.viewStyle.style == kRemoteViewStyleOriginal;
|
||||||
shouldScale = zoomCursor.value || isViewOriginal;
|
if (zoomCursor.value || isViewOriginal) {
|
||||||
}
|
|
||||||
if (shouldScale) {
|
|
||||||
x = m.x - hotx + cx / c.scale;
|
x = m.x - hotx + cx / c.scale;
|
||||||
y = m.y - hoty + cy / c.scale;
|
y = m.y - hoty + cy / c.scale;
|
||||||
scale = c.scale;
|
scale = c.scale;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user