remove tombstone special case in debug.go
This commit is contained in:
parent
6565fd4160
commit
37367a713e
2 changed files with 4 additions and 3 deletions
|
@ -43,11 +43,12 @@ func (d *DebugToast) Draw(screen *ebiten.Image, _ *ebiten.DrawImageOptions) {
|
|||
// Draw last.
|
||||
func (DebugToast) DrawAfter(x Drawer) bool {
|
||||
switch x.(type) {
|
||||
case *DebugToast, PerfDisplay, tombstone:
|
||||
case *DebugToast, PerfDisplay:
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (DebugToast) DrawBefore(x Drawer) bool {
|
||||
return false
|
||||
}
|
||||
|
@ -81,7 +82,7 @@ func (p PerfDisplay) Draw(screen *ebiten.Image, _ *ebiten.DrawImageOptions) {
|
|||
// Draw last.
|
||||
func (PerfDisplay) DrawAfter(x Drawer) bool {
|
||||
switch x.(type) {
|
||||
case *DebugToast, PerfDisplay, tombstone:
|
||||
case *DebugToast, PerfDisplay:
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
|
|
@ -83,7 +83,7 @@ func (d drawList) Swap(i, j int) {
|
|||
}
|
||||
|
||||
// Slow topological sort. Uses a projection π to flatten bounding boxes for
|
||||
// overlap tests, so that the graph is reduced.
|
||||
// overlap tests, in order to reduce edge count.
|
||||
func (d *drawList) topsort(π geom.Projector) {
|
||||
// Produce edge lists and count indegrees - O(|V|^2)
|
||||
// TODO: optimise this
|
||||
|
|
Loading…
Reference in a new issue