Adjust error screen font size and default perspective;

This commit is contained in:
bjorn 2022-08-12 21:08:25 -07:00
parent 5fd6ef0b8f
commit 3cbf85c98a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;