Skip to content

Commit

Permalink
Fix UI tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
psykana committed Aug 14, 2024
1 parent b7a373a commit d88b6eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/game/client/gui/gamewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ GameWindow::GameWindow() :
Win_Set_Draw_Func(g_theWindowManager->Get_Default_Draw());
Win_Set_Input_Func(g_theWindowManager->Get_Default_Input());
Win_Set_System_Func(g_theWindowManager->Get_Default_System());
Win_Set_Tooltip_Func(g_theWindowManager->Get_Default_Tooltip());
Win_Set_Tooltip_Func(nullptr);
}

GameWindow::~GameWindow()
Expand Down
6 changes: 3 additions & 3 deletions src/game/client/gui/gamewindowmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,17 @@ bool GameWindowManager::Is_Enabled(GameWindow *window)
bool GameWindowManager::Is_Hidden(GameWindow *window)
{
if (window == nullptr) {
return false;
return true;
}

if ((window->m_status & WIN_STATUS_HIDDEN) == 0) {
if ((window->m_status & WIN_STATUS_HIDDEN) != 0) {
return true;
}

while (window->m_parent != nullptr) {
window = window->m_parent;

if ((window->m_status & WIN_STATUS_HIDDEN) == 0) {
if ((window->m_status & WIN_STATUS_HIDDEN) != 0) {
return true;
}
}
Expand Down

0 comments on commit d88b6eb

Please sign in to comment.