mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Fixed a video fade-in issue when using the GLES renderer.
This commit is contained in:
parent
8f6565b9f0
commit
0266a6e7e6
|
@ -147,8 +147,8 @@ void VideoFFmpegComponent::render(const glm::mat4& parentTrans)
|
|||
unsigned int rectColor {0x000000FF};
|
||||
|
||||
if (mThemeOpacity != 1.0f) {
|
||||
color = (static_cast<int>(mThemeOpacity * 255.0f) << 24) + 0x00FFFFFF;
|
||||
rectColor = static_cast<int>(mThemeOpacity * 255.0f);
|
||||
color = (static_cast<int>(mThemeOpacity * mFadeIn * 255.0f) << 24) + 0x00FFFFFF;
|
||||
rectColor = static_cast<int>(mThemeOpacity * mFadeIn * 255.0f);
|
||||
}
|
||||
|
||||
// Render the black rectangle behind the video.
|
||||
|
|
Loading…
Reference in a new issue