mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
System view extras are now clipped (can no longer overflow into other views).
This commit is contained in:
parent
f141dd256c
commit
8efbc953d0
|
@ -277,8 +277,11 @@ void SystemView::render(const Eigen::Affine3f& parentTrans)
|
||||||
index -= mEntries.size();
|
index -= mEntries.size();
|
||||||
|
|
||||||
extrasTrans.translation() = trans.translation() + Eigen::Vector3f((i - mExtrasCamOffset) * mSize.x(), 0, 0);
|
extrasTrans.translation() = trans.translation() + Eigen::Vector3f((i - mExtrasCamOffset) * mSize.x(), 0, 0);
|
||||||
|
|
||||||
|
Eigen::Vector2i clipRect = Eigen::Vector2i((int)((i - mExtrasCamOffset) * mSize.x()), 0);
|
||||||
|
Renderer::pushClipRect(clipRect, mSize.cast<int>());
|
||||||
mEntries.at(index).data.backgroundExtras->render(extrasTrans);
|
mEntries.at(index).data.backgroundExtras->render(extrasTrans);
|
||||||
|
Renderer::popClipRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
// fade extras if necessary
|
// fade extras if necessary
|
||||||
|
|
Loading…
Reference in a new issue