2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 13:47:46 +00:00

FileBrowser updates

This commit is contained in:
Jack Andersen
2015-12-30 12:04:58 -10:00
parent a49d225f64
commit 23318a3e5d
8 changed files with 236 additions and 56 deletions

View File

@@ -282,8 +282,7 @@ void Table::RowsView::draw(boo::IGraphicsCommandQueue* gfxQ)
gfxQ->setDrawPrimitive(boo::Primitive::TriStrips);
gfxQ->setScissor(m_scissorRect);
size_t rows = std::min(m_visibleRows, m_t.m_rows);
gfxQ->draw(1, rows * m_t.m_columns * 6 - 2);
gfxQ->draw(1, m_visibleRows * m_t.m_columns * 6 - 2);
for (auto& col : m_t.m_cellViews)
{
size_t idx = 0;
@@ -296,9 +295,12 @@ void Table::RowsView::draw(boo::IGraphicsCommandQueue* gfxQ)
}
gfxQ->setScissor(rootView().subRect());
for (std::unique_ptr<CellView>& hv : m_t.m_headerViews)
if (hv)
hv->draw(gfxQ);
if (m_t.m_header)
{
for (std::unique_ptr<CellView>& hv : m_t.m_headerViews)
if (hv)
hv->draw(gfxQ);
}
}
void Table::CellView::draw(boo::IGraphicsCommandQueue* gfxQ)