Skip to content

Commit b0aaaed

Browse files
committed
fix colour order in colorPicker and colorEdit
1 parent 352d6b7 commit b0aaaed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/lambda/gui/dsl/ImGuiBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ object ImGuiBuilder {
10721072
val components = col.getComponents(default)
10731073

10741074
if (ImGui.colorEdit4(label, components)) {
1075-
val (r, b, g, a) = components
1075+
val (r, g, b, a) = components
10761076

10771077
color.set(Color(r, g, b, a))
10781078
block(col)
@@ -1102,7 +1102,7 @@ object ImGuiBuilder {
11021102
val components = col.getComponents(default)
11031103

11041104
if (colorPicker4(label, components, flags)) {
1105-
val (r, b, g, a) = components
1105+
val (r, g, b, a) = components
11061106

11071107
color.set(Color(r, g, b, a))
11081108
block(col)

0 commit comments

Comments
 (0)