summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2024-04-20 14:18:31 -0500
committerGitHub <noreply@github.com>2024-04-20 16:18:31 -0300
commitb3929bea72dfeb0a19feb5d024306af4831cc7bd (patch)
tree3d64a495dc7aa96995fb57786a2de11ca3f8e1c8 /src/sys
parent1272524325c5e0bbd33be3296d34c6cdad3e4c92 (diff)
Docs update, added list of all SFX Ids used in the game. (#217)
* docs * format * format plz * stuff * more stuff * more names and such * torch update
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/sys_lib.c b/src/sys/sys_lib.c
index 25e9b218..702c3a19 100644
--- a/src/sys/sys_lib.c
+++ b/src/sys/sys_lib.c
@@ -84,8 +84,7 @@ void Lib_QuickSort(u8* first, u32 length, u32 size, CompareFunc cFunc) {
void Lib_InitPerspective(Gfx** dList) {
u16 norm;
- guPerspective(gGfxMtx, &norm, D_game_80161A3C, (f32) SCREEN_WIDTH / SCREEN_HEIGHT, D_game_80161A40, D_game_80161A44,
- 1.0f);
+ guPerspective(gGfxMtx, &norm, gFovY, (f32) SCREEN_WIDTH / SCREEN_HEIGHT, gProjectNear, gProjectFar, 1.0f);
gSPPerspNormalize((*dList)++, norm);
gSPMatrix((*dList)++, gGfxMtx++, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
guLookAt(gGfxMtx, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -12800.0f, 0.0f, 1.0f, 0.0f);
@@ -94,7 +93,8 @@ void Lib_InitPerspective(Gfx** dList) {
}
void Lib_InitOrtho(Gfx** dList) {
- guOrtho(gGfxMtx, -160.0f, 160.0f, -120.0f, 120.0f, D_game_80161A40, D_game_80161A44, 1.0f);
+ guOrtho(gGfxMtx, -SCREEN_WIDTH / 2, SCREEN_WIDTH / 2, -SCREEN_HEIGHT / 2, SCREEN_HEIGHT / 2, gProjectNear,
+ gProjectFar, 1.0f);
gSPMatrix((*dList)++, gGfxMtx++, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
guLookAt(gGfxMtx, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -12800.0f, 0.0f, 1.0f, 0.0f);
gSPMatrix((*dList)++, gGfxMtx++, G_MTX_NOPUSH | G_MTX_MUL | G_MTX_PROJECTION);