mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Added debug overlay rendering for the actual video stream in addition to the static image
This commit is contained in:
parent
0e2571e8dd
commit
3d58eccd87
|
@ -176,6 +176,14 @@ void VideoFFmpegComponent::render(const glm::mat4& parentTrans)
|
||||||
if (mIsPlaying && mFormatContext) {
|
if (mIsPlaying && mFormatContext) {
|
||||||
Renderer::Vertex vertices[4];
|
Renderer::Vertex vertices[4];
|
||||||
|
|
||||||
|
if (Settings::getInstance()->getBool("DebugImage")) {
|
||||||
|
mRenderer->setMatrix(trans);
|
||||||
|
const glm::vec2 targetSizePos {(mTargetSize - mSize) * mOrigin * glm::vec2 {-1.0f}};
|
||||||
|
mRenderer->drawRect(targetSizePos.x, targetSizePos.y, std::round(mTargetSize.x),
|
||||||
|
std::round(mTargetSize.y), 0xFF000033, 0xFF000033);
|
||||||
|
mRenderer->setMatrix(parentTrans);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mScreensaverMode && !mMediaViewerMode) {
|
if (!mScreensaverMode && !mMediaViewerMode) {
|
||||||
mBlackFrame.setOpacity(mOpacity * mThemeOpacity);
|
mBlackFrame.setOpacity(mOpacity * mThemeOpacity);
|
||||||
mBlackFrame.render(trans);
|
mBlackFrame.render(trans);
|
||||||
|
|
Loading…
Reference in a new issue