Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
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
community
godot
Commits
8b8807e3
Commit
8b8807e3
authored
Jan 03, 2017
by
lonesurvivor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvement to y_sort: make clear which item has to be drawn first
when both have the same y coordinate (prevents possible flickering). Reapplying #7241 to the 3.0 code.
parent
3fae5051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
visual_server_canvas.h
servers/visual/visual_server_canvas.h
+4
-1
No files found.
servers/visual/visual_server_canvas.h
View file @
8b8807e3
...
...
@@ -44,7 +44,10 @@ public:
_FORCE_INLINE_
bool
operator
()(
const
Item
*
p_left
,
const
Item
*
p_right
)
const
{
return
p_left
->
xform
.
elements
[
2
].
y
<
p_right
->
xform
.
elements
[
2
].
y
;
if
(
Math
::
abs
(
p_left
->
xform
.
elements
[
2
].
y
-
p_right
->
xform
.
elements
[
2
].
y
)
<
CMP_EPSILON
)
return
p_left
->
xform
.
elements
[
2
].
x
<
p_right
->
xform
.
elements
[
2
].
x
;
else
return
p_left
->
xform
.
elements
[
2
].
y
<
p_right
->
xform
.
elements
[
2
].
y
;
}
};
...
...
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