Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
ef0980a9
Commit
ef0980a9
authored
Sep 09, 2022
by
fufesou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flutter_desktop: fix local cursor (hotx,hoty) offset
Signed-off-by:
fufesou
<
shuanglongchen@yeah.net
>
parent
adafa38c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
remote_page.dart
flutter/lib/desktop/pages/remote_page.dart
+2
-2
model.dart
flutter/lib/models/model.dart
+1
-1
No files found.
flutter/lib/desktop/pages/remote_page.dart
View file @
ef0980a9
...
...
@@ -599,8 +599,8 @@ class ImagePaint extends StatelessWidget {
return
FlutterCustomMemoryImageCursor
(
pixbuf:
cacheLinux
.
data
,
key:
key
,
hotx:
cacheLinux
.
hotx
,
hoty:
cacheLinux
.
hoty
,
hotx:
0.0
,
hoty:
0.0
,
imageWidth:
(
cacheLinux
.
width
*
scale
).
toInt
(),
imageHeight:
(
cacheLinux
.
height
*
scale
).
toInt
(),
);
...
...
flutter/lib/models/model.dart
View file @
ef0980a9
...
...
@@ -619,7 +619,7 @@ class CursorData {
int
_doubleToInt
(
double
v
)
=>
(
v
*
10
e6
).
round
().
toInt
();
String
key
(
double
scale
)
=>
'
${peerId}
_
${id}
_
${_doubleToInt(
hotx)}
_
${_doubleToInt(hoty)}
_
${_doubleToInt(
width * scale)}
_
${_doubleToInt(height * scale)}
'
;
'
${peerId}
_
${id}
_
${_doubleToInt(width * scale)}
_
${_doubleToInt(height * scale)}
'
;
}
class
CursorModel
with
ChangeNotifier
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment