2 Commits

Author SHA1 Message Date
a4237d369f fixed compile-errors. 2022-03-21 13:44:14 +01:00
69a9bf50a5 switched deps 2022-03-21 13:24:22 +01:00
3 changed files with 6 additions and 4 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,4 @@
[submodule "imgui"]
path = imgui
url = https://github.com/ocornut/imgui
url = https://github.com/Drezil/imgui
branch = textAlign

2
imgui

Submodule imgui updated: c71a50deb5...db20d38864

View File

@ -412,8 +412,8 @@ addText_ (DrawList drawList) pos col text_begin text_end = liftIO do
}
|]
addText :: MonadIO m => DrawList -> Ptr ImFont -> CFloat -> Ptr ImVec2 -> ImU32 -> CString -> CString -> CFloat -> Ptr ImVec4 -> m ()
addText (DrawList drawList) fontPtr font_size pos col text_begin text_end wrap_width cpu_fine_clip_rect = liftIO do
addText :: MonadIO m => DrawList -> Ptr ImFont -> CFloat -> Ptr ImVec2 -> ImU32 -> CString -> CString -> CFloat -> CFloat -> Ptr ImVec4 -> m ()
addText (DrawList drawList) fontPtr font_size pos col text_begin text_end wrap_width text_align cpu_fine_clip_rect = liftIO do
[C.block|
void {
$(ImDrawList* drawList)->AddText(
@ -424,6 +424,7 @@ addText (DrawList drawList) fontPtr font_size pos col text_begin text_end wrap_w
$(char* text_begin),
$(char* text_end),
$(float wrap_width),
$(float text_align),
$(ImVec4* cpu_fine_clip_rect)
);
}