diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-26 17:17:03 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-26 17:17:03 -0400 |
| commit | 246950deed73be2c2c6175496b1e72b96f8f4d46 (patch) | |
| tree | 2c7a3a4e736dac3f335197c72d07ba9c44652c18 /colorbutton.go | |
| parent | 247cdf8d6ff13697dcead9908d97146e0d5171c4 (diff) | |
Migrated drawtext.go and fontbutton.go.
Diffstat (limited to 'colorbutton.go')
| -rw-r--r-- | colorbutton.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/colorbutton.go b/colorbutton.go index 6b1f525..f10c5c8 100644 --- a/colorbutton.go +++ b/colorbutton.go @@ -33,7 +33,7 @@ func NewColorButton() *ColorButton { // Colors are not alpha-premultiplied. // TODO rename b or bl func (b *ColorButton) Color() (r, g, bl, a float64) { - c := C.pkguiNewColorDoubles() + c := C.pkguiAllocColorDoubles() defer C.pkguiFreeColorDoubles(c) C.uiColorButtonColor(b.b, c.r, c.g, c.b, c.a) return float64(*(c.r)), float64(*(c.g)), float64(*(c.b)), float64(*(c.a)) |
