aboutsummaryrefslogtreecommitdiffstats
path: root/c_litems.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-15 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-15 20:20:20 +0100
commitaf9679edc0fddab9b5ce784bece6397f3c64028c (patch)
tree68a6d279c3fb24176219143d5237e3a36cd1a345 /c_litems.go
parentuseless (diff)
downloadhardflip-af9679edc0fddab9b5ce784bece6397f3c64028c.tar.gz
hardflip-af9679edc0fddab9b5ce784bece6397f3c64028c.tar.bz2
hardflip-af9679edc0fddab9b5ce784bece6397f3c64028c.tar.xz
hardflip-af9679edc0fddab9b5ce784bece6397f3c64028c.tar.zst
hardflip-af9679edc0fddab9b5ce784bece6397f3c64028c.zip
think its ok
Diffstat (limited to 'c_litems.go')
-rw-r--r--c_litems.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/c_litems.go b/c_litems.go
index 48e9246..b7b1b4b 100644
--- a/c_litems.go
+++ b/c_litems.go
@@ -63,7 +63,7 @@ type ItemsList struct {
head *ItemsNode
last *ItemsNode
curr *ItemsNode
- draw_start *ItemsNode
+ draw *ItemsNode
}
// adds an item node to the list
@@ -88,11 +88,11 @@ func (litems *ItemsList) del(item *ItemsNode) {
if litems.head == item {
litems.head = litems.head.next
if litems.head == nil {
- litems.last, litems.curr, litems.draw_start = nil, nil, nil
+ litems.last, litems.curr, litems.draw = nil, nil, nil
return
}
litems.head.prev = nil
- litems.curr, litems.draw_start = litems.head, litems.head
+ litems.curr, litems.draw = litems.head, litems.head
for ptr := litems.head; ptr != nil; ptr = ptr.next {
ptr.ID -= 1
}
@@ -102,8 +102,8 @@ func (litems *ItemsList) del(item *ItemsNode) {
litems.last = litems.last.prev
litems.last.next = nil
litems.curr = litems.last
- if litems.draw_start == item {
- litems.draw_start = litems.last
+ if litems.draw == item {
+ litems.draw = litems.last
}
return
}