mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
Fix more UI asserts (#146)
This commit is contained in:
parent
86e1a2227c
commit
b1e92f1779
3 changed files with 10 additions and 5 deletions
|
@ -372,7 +372,9 @@ void TextureRelationViewerWindow::RefreshTextureList()
|
|||
}
|
||||
}
|
||||
textureRelationListA->Thaw();
|
||||
textureRelationListA->EnsureVisible(scrollPos + textureRelationListA->GetCountPerPage() - 1);
|
||||
long itemCount = textureRelationListA->GetItemCount();
|
||||
if (itemCount > 0)
|
||||
textureRelationListA->EnsureVisible(std::min<long>(itemCount - 1, scrollPos + textureRelationListA->GetCountPerPage() - 1));
|
||||
}
|
||||
|
||||
void TextureRelationViewerWindow::OnTextureListRightClick(wxMouseEvent& event)
|
||||
|
@ -383,4 +385,4 @@ void TextureRelationViewerWindow::OnTextureListRightClick(wxMouseEvent& event)
|
|||
void TextureRelationViewerWindow::Close()
|
||||
{
|
||||
this->Destroy();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue