mirror of https://github.com/bjornbytes/lovr.git
Adjust error screen font size and default perspective;
This commit is contained in:
parent
5fd6ef0b8f
commit
3cbf85c98a
|
@ -166,7 +166,7 @@ function lovr.errhand(message)
|
||||||
|
|
||||||
if lovr.audio then lovr.audio.stop() end
|
if lovr.audio then lovr.audio.stop() end
|
||||||
|
|
||||||
local scale = .3
|
local scale = .35
|
||||||
local font = lovr.graphics.getDefaultFont()
|
local font = lovr.graphics.getDefaultFont()
|
||||||
local wrap = .7 * font:getPixelDensity()
|
local wrap = .7 * font:getPixelDensity()
|
||||||
local lines = font:getLines(message, wrap)
|
local lines = font:getLines(message, wrap)
|
||||||
|
|
|
@ -3441,7 +3441,7 @@ void lovrPassReset(Pass* pass) {
|
||||||
|
|
||||||
for (uint32_t i = 0; i < pass->cameraCount; i++) {
|
for (uint32_t i = 0; i < pass->cameraCount; i++) {
|
||||||
mat4_identity(pass->cameras[i].view);
|
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;
|
pass->cameraDirty = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue