mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
System view extras are now clipped (can no longer overflow into other views).
This commit is contained in:
parent
f141dd256c
commit
8efbc953d0
|
@ -278,7 +278,10 @@ void SystemView::render(const Eigen::Affine3f& parentTrans)
|
|||
|
||||
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);
|
||||
Renderer::popClipRect();
|
||||
}
|
||||
|
||||
// fade extras if necessary
|
||||
|
|
Loading…
Reference in a new issue