Skip to content

Commit a3ed728

Browse files
committed
Fix: SetColor does not return prev color
1 parent 7bdb1d1 commit a3ed728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func DrawTarget() Canvas {
7474
//
7575
// Returns the previous color.
7676
func SetColor(c Color) (prev Color) {
77-
prev = c
77+
prev = drawColor
7878
drawColor = c
7979
return
8080
}

0 commit comments

Comments
 (0)