Skip to content

Commit

Permalink
Merge pull request #54 from jeremyherbert/master
Browse files Browse the repository at this point in the history
correct the swapping of min/max args in drag_int and drag_float
  • Loading branch information
swistakm committed Apr 6, 2018
2 parents 3b61d04 + 2e5f269 commit beeaf80
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions imgui/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3025,7 +3025,7 @@ def drag_float(

return cimgui.DragFloat(
_bytes(label), &inout_value,
change_speed, max_value, min_value, _bytes(display_format), power
change_speed, min_value, max_value, _bytes(display_format), power
), inout_value


Expand Down Expand Up @@ -3084,7 +3084,7 @@ def drag_float2(
cdef float[2] inout_values = [value0, value1]
return cimgui.DragFloat2(
_bytes(label), <float*>&inout_values,
change_speed, max_value, min_value, _bytes(display_format), power
change_speed, min_value, max_value, _bytes(display_format), power
), (inout_values[0], inout_values[1])


Expand Down Expand Up @@ -3143,7 +3143,7 @@ def drag_float3(
cdef float[3] inout_values = [value0, value1, value2]
return cimgui.DragFloat3(
_bytes(label), <float*>&inout_values,
change_speed, max_value, min_value, _bytes(display_format), power
change_speed, min_value, max_value, _bytes(display_format), power
), (inout_values[0], inout_values[1], inout_values[2])


Expand Down Expand Up @@ -3202,7 +3202,7 @@ def drag_float4(
cdef float[4] inout_values = [value0, value1, value2, value3]
return cimgui.DragFloat4(
_bytes(label), <float*>&inout_values,
change_speed, max_value, min_value, _bytes(display_format), power
change_speed, min_value, max_value, _bytes(display_format), power
), (inout_values[0], inout_values[1], inout_values[2], inout_values[3])


Expand Down Expand Up @@ -3260,7 +3260,7 @@ def drag_int(

return cimgui.DragInt(
_bytes(label), &inout_value,
change_speed, max_value, min_value, _bytes(display_format)
change_speed, min_value, max_value, _bytes(display_format)
), inout_value


Expand Down Expand Up @@ -3313,7 +3313,7 @@ def drag_int2(
cdef int[2] inout_values = [value0, value1]
return cimgui.DragInt2(
_bytes(label), <int*>&inout_values,
change_speed, max_value, min_value, _bytes(display_format),
change_speed, min_value, max_value, _bytes(display_format),
), (inout_values[0], inout_values[1])


Expand Down Expand Up @@ -3366,7 +3366,7 @@ def drag_int3(
cdef int[3] inout_values = [value0, value1, value2]
return cimgui.DragInt3(
_bytes(label), <int*>&inout_values,
change_speed, max_value, min_value, _bytes(display_format),
change_speed, min_value, max_value, _bytes(display_format),
), (inout_values[0], inout_values[1], inout_values[2])


Expand Down Expand Up @@ -3419,7 +3419,7 @@ def drag_int4(
cdef int[4] inout_values = [value0, value1, value2, value3]
return cimgui.DragInt4(
_bytes(label), <int*>&inout_values,
change_speed, max_value, min_value, _bytes(display_format),
change_speed, min_value, max_value, _bytes(display_format),
), (inout_values[0], inout_values[1], inout_values[2], inout_values[3])


Expand Down

0 comments on commit beeaf80

Please sign in to comment.