Skip to content

Commit

Permalink
make panel_hidden portable
Browse files Browse the repository at this point in the history
fixing #325 while being a breaking change
  • Loading branch information
GitMensch authored Dec 31, 2024
1 parent a5f13c2 commit f5e5b17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdcurses/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ panel
ceiling_panel() returns a pointer to the top panel in the deck.
panel_hidden() returns OK if pan is hidden and ERR if it is not.
panel_hidden() returns TRUE if pan is hidden, FALSE if not and
ERR if pan is NULL.
panel_userptr() - Each panel has a user pointer available for
maintaining relevant information. This function returns a pointer to
Expand Down Expand Up @@ -430,11 +431,10 @@ PANEL *ground_panel( SCREEN *sp)

int panel_hidden(const PANEL *pan)
{
assert( pan);
if (!pan)
return ERR;

return _panel_is_linked(pan) ? ERR : OK;
return _panel_is_linked(pan) ? TRUE : FALSE;
}

const void *panel_userptr(const PANEL *pan)
Expand Down

0 comments on commit f5e5b17

Please sign in to comment.