Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
a7e9e209
Commit
a7e9e209
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Selection cursor is only drawn on the target canvas on mouse
moves. Greatly improves performance when running over X11
parent
a1bed04c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fsleyes/profiles/orthoeditprofile.py
+10
-10
10 additions, 10 deletions
fsl/fsleyes/profiles/orthoeditprofile.py
with
10 additions
and
10 deletions
fsl/fsleyes/profiles/orthoeditprofile.py
+
10
−
10
View file @
a7e9e209
...
@@ -840,16 +840,16 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
...
@@ -840,16 +840,16 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
On all lower performance settings, only the source canvas is updated.
On all lower performance settings, only the source canvas is updated.
"""
"""
perf
=
self
.
_viewPanel
.
getSceneOptions
().
performance
perf
=
self
.
_viewPanel
.
getSceneOptions
().
performance
if
perf
==
4
:
if
mousePos
is
None
or
canvasPos
is
None
:
# If running in high performance mode, we make
self
.
_viewPanel
.
Refresh
()
# the canvas location track the edit cursor
# location, so that the other two canvases
# If running in high performance mode, we make
# update to display the current cursor location.
# the canvas location track the edit cursor
if
perf
==
4
and
\
# location, so that the other two canvases
(
mousePos
is
not
None
)
and
\
# update to display the current cursor location.
(
canvasPos
is
not
None
):
el
se
:
s
el
f
.
_navModeLeftMouseDrag
(
ev
,
canvas
,
mousePos
,
canvasPos
)
self
.
_navModeLeftMouseDrag
(
ev
,
canvas
,
mousePos
,
canvasPos
)
else
:
else
:
canvas
.
Refresh
()
canvas
.
Refresh
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment