From 61fe0f3bc0883c3a90aade7ad67147773d929fa7 Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 12 May 2023 14:31:31 +0100 Subject: [PATCH] Default errhand uses transparent background in AR; --- etc/boot.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/boot.lua b/etc/boot.lua index 6e7394f8..d434c8e5 100644 --- a/etc/boot.lua +++ b/etc/boot.lua @@ -170,7 +170,12 @@ function lovr.errhand(message) local y = math.min(height / 2, 10) local z = -10 - lovr.graphics.setBackgroundColor(.11, .10, .14) + if lovr.headset.getPassthrough() == 'opaque' then + lovr.graphics.setBackgroundColor(.11, .10, .14) + else + lovr.graphics.setBackgroundColor(0, 0, 0, 0) + end + font:setPixelDensity() local function render(pass)