Closed metaleap closed 11 years ago
I don't actually use the Image.go functionality but was just idly browsing its source (an odd hobby of mine) and noticed:
func (i *Image) Width() int { return int(i.img.Width) } func (i *Image) SetWidth(v int) { i.img.Width = C.int(v) } func (i *Image) Height() int { return int(i.img.Height) } func (i *Image) SetHeight(v int) { i.img.Width = C.int(v) }
Is the last one of these indeed correct-as-intended? ;)
O_o It's been a while since I wrote all that, but I get the impression I was half asleep while doing so. Patch incoming.
I don't actually use the Image.go functionality but was just idly browsing its source (an odd hobby of mine) and noticed:
Is the last one of these indeed correct-as-intended? ;)