Skip to content

Commit 733db38

Browse files
committed
Correct NewImVec4 args to ImVec4 fields, modified ImVec4 struct fields to align with dear imgui struct positions
1 parent 04c8c42 commit 733db38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extra_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ func (vec *ImVec2) wrap() (out *C.ImVec2, finisher func()) {
4646
type ImVec4 struct {
4747
X float32
4848
Y float32
49-
W float32
5049
Z float32
50+
W float32
5151
}
5252

5353
func NewImVec4(r, g, b, a float32) ImVec4 {
5454
return ImVec4{
5555
X: r,
5656
Y: g,
57-
W: b,
58-
Z: a,
57+
Z: b,
58+
W: a,
5959
}
6060
}
6161

0 commit comments

Comments
 (0)