From 6bf3406793d324bdf8c85643c5e71d4edd6b4249 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sat, 24 Aug 2024 17:30:56 +0200 Subject: [PATCH] implement IsPadWindowActive --- src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp index 64406171..bc5b83ac 100644 --- a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp @@ -206,9 +206,7 @@ void MetalRenderer::Shutdown() // TODO: what should this do? bool MetalRenderer::IsPadWindowActive() { - //debug_printf("MetalRenderer::IsPadWindowActive not implemented\n"); - - return false; + return (GetLayer(false).GetDrawable() != nullptr); } bool MetalRenderer::GetVRAMInfo(int& usageInMB, int& totalInMB) const