From 3cbf85c98a430f25985c5bb0ef8fb9bda946fca5 Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 12 Aug 2022 21:08:25 -0700 Subject: [PATCH] Adjust error screen font size and default perspective; --- etc/boot.lua | 2 +- src/modules/graphics/graphics.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/boot.lua b/etc/boot.lua index 446fa05c..dad76bb2 100644 --- a/etc/boot.lua +++ b/etc/boot.lua @@ -166,7 +166,7 @@ function lovr.errhand(message) if lovr.audio then lovr.audio.stop() end - local scale = .3 + local scale = .35 local font = lovr.graphics.getDefaultFont() local wrap = .7 * font:getPixelDensity() local lines = font:getLines(message, wrap) diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index fa23dd08..17a0dc2a 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -3441,7 +3441,7 @@ void lovrPassReset(Pass* pass) { for (uint32_t i = 0; i < pass->cameraCount; i++) { mat4_identity(pass->cameras[i].view); - mat4_perspective(pass->cameras[i].projection, 1.f, aspect, .01f, 0.f); + mat4_perspective(pass->cameras[i].projection, 1.f / aspect, aspect, .01f, 0.f); } pass->cameraDirty = true;