From 8d83afa102c6057e8d2f85911afe1ceb3952d193 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 9 Mar 2022 00:51:00 -0500 Subject: [PATCH] CSplashScreen: Render Dolby splash --- Runtime/GuiSys/CSplashScreen.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Runtime/GuiSys/CSplashScreen.cpp b/Runtime/GuiSys/CSplashScreen.cpp index 6289d9259..b39d36cfe 100644 --- a/Runtime/GuiSys/CSplashScreen.cpp +++ b/Runtime/GuiSys/CSplashScreen.cpp @@ -91,18 +91,10 @@ void CSplashScreen::Draw() { CGraphics::StreamEnd(); CGraphics::SetCullMode(ERglCullMode::Front); } else { - // TODO - // CGraphics::Render2D(); + // TODO originally uses CGraphics viewport, but Render2D needs scaling fix + CGraphics::Render2D(tex, 0, 0, 640, 448, color); } -// zeus::CRectangle rect; -// rect.size.x() = width / (480.f * CGraphics::GetViewportAspect()); -// rect.size.y() = height / 480.f; -// rect.position.x() = 0.5f - rect.size.x() / 2.f; -// rect.position.y() = 0.5f - rect.size.y() / 2.f; -// aurora::gfx::queue_textured_quad(aurora::gfx::CameraFilterType::Blend, tex.GetTexture(), -// aurora::gfx::ZComp::Always, false, color, 1.f, rect, 0.f); - // Progressive scan options omitted }