Fixed some compiler errors in the last few commits.

This commit is contained in:
Pietro Gagliardi 2014-02-24 10:44:20 -05:00
parent 1c540117d3
commit 1510af0005
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func (s *Stack) SetStretchy(index int) {
s.lock.Lock() s.lock.Lock()
defer s.lock.Unlock() defer s.lock.Unlock()
s[index] = true // TODO explicitly check for index out of bounds? s.stretchy[index] = true // TODO explicitly check for index out of bounds?
} }
func (s *Stack) make(window *sysData) error { func (s *Stack) make(window *sysData) error {
@ -94,7 +94,7 @@ func (s *Stack) setRect(x int, y int, width int, height int) error {
stretchyht /= nStretchy stretchyht /= nStretchy
} }
} }
for i, c := range controls { for i, c := range s.controls {
if !s.stretchy[i] { if !s.stretchy[i] {
continue continue
} }