Skip to content

Commit a875375

Browse files
committed
Fix examples for imageButton API update
1 parent 72b496f commit a875375

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/sdl/Image.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ mainLoop window textures flag = unlessQuit do
152152
Foreign.with (ImVec2 1 1) \uv1Ptr ->
153153
Foreign.with (ImVec4 1 1 1 1) \tintColPtr ->
154154
Foreign.with (ImVec4 1 1 1 1) \bgColPtr ->
155-
Raw.imageButton openGLtextureID sizePtr uv0Ptr uv1Ptr (-1) bgColPtr tintColPtr
155+
Raw.imageButton nullPtr openGLtextureID sizePtr uv0Ptr uv1Ptr bgColPtr tintColPtr
156156
else
157157
pure False
158158

examples/vulkan/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ gui texture = do
111111
with (ImGui.Raw.ImVec4 1 1 1 1) \tintColPtr ->
112112
with (ImGui.Raw.ImVec4 1 1 1 1) \bgColPtr ->
113113
ImGui.Raw.imageButton
114+
nullPtr
114115
(snd texture)
115116
sizePtr
116117
uv0Ptr
117118
uv1Ptr
118-
(-1)
119119
bgColPtr
120120
tintColPtr
121121

0 commit comments

Comments
 (0)