Skip to content

Commit c555b8d

Browse files
authored
raw: Allow Nothing openPtr with flags (#213)
1 parent 5712b00 commit c555b8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DearImGui/Raw.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ styleColorsClassic = liftIO do
569569
begin :: (MonadIO m) => CString -> Maybe (Ptr CBool) -> Maybe (ImGuiWindowFlags) -> m Bool
570570
begin namePtr (Just openPtr) (Just flags) = liftIO do
571571
(0 /=) <$> [C.exp| bool { Begin($(char* namePtr), $(bool* openPtr), $(ImGuiWindowFlags flags)) } |]
572+
begin namePtr Nothing (Just flags) = liftIO do
573+
(0 /=) <$> [C.exp| bool { Begin($(char* namePtr), NULL, $(ImGuiWindowFlags flags)) } |]
572574
begin namePtr (Just openPtr) Nothing = liftIO do
573575
(0 /=) <$> [C.exp| bool { Begin($(char* namePtr), $(bool* openPtr)) } |]
574576
begin namePtr Nothing Nothing = liftIO do

0 commit comments

Comments
 (0)