mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 19:07:46 +00:00
Table scissor adjustment
This commit is contained in:
@@ -659,6 +659,8 @@ void Table::RowsView::resized(const boo::SWindowRect& root, const boo::SWindowRe
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
float pf = rootView().viewRes().pixelFactor();
|
float pf = rootView().viewRes().pixelFactor();
|
||||||
|
boo::SWindowRect cellScissor = scissor;
|
||||||
|
cellScissor.size[1] -= 2 * pf;
|
||||||
boo::SWindowRect rowRect = sub;
|
boo::SWindowRect rowRect = sub;
|
||||||
rowRect.location[1] += sub.size[1] - ROW_HEIGHT * pf;
|
rowRect.location[1] += sub.size[1] - ROW_HEIGHT * pf;
|
||||||
int spacing = (ROW_HEIGHT + CELL_MARGIN * 2) * pf;
|
int spacing = (ROW_HEIGHT + CELL_MARGIN * 2) * pf;
|
||||||
@@ -670,7 +672,7 @@ void Table::RowsView::resized(const boo::SWindowRect& root, const boo::SWindowRe
|
|||||||
{
|
{
|
||||||
cellRectIt->location[1] -= spacing;
|
cellRectIt->location[1] -= spacing;
|
||||||
if (cv.m_view)
|
if (cv.m_view)
|
||||||
cv.m_view->resized(root, *cellRectIt, scissor);
|
cv.m_view->resized(root, *cellRectIt, cellScissor);
|
||||||
}
|
}
|
||||||
++cellRectIt;
|
++cellRectIt;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user