diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-01-04 18:00:18 -0700 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-01-04 18:00:18 -0700 |
| commit | dc04c834bddf33a4b5ab8f883cf3b875a0f17ab9 (patch) | |
| tree | 7b1f1cced8f5ba323ed8be7df21343188b064e78 /src/math_util_2.c | |
| parent | 8746a4337e17f32a38920a45c2e8a0676fbf08bf (diff) | |
Fix portrait numbers
Diffstat (limited to 'src/math_util_2.c')
| -rw-r--r-- | src/math_util_2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/math_util_2.c b/src/math_util_2.c index f2b85daeb..33565e412 100644 --- a/src/math_util_2.c +++ b/src/math_util_2.c @@ -718,6 +718,19 @@ void func_80042330(s32 x, s32 y, u16 angle, f32 scale) { AddHudMatrix(matrix, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); } +void func_80042330_default(s32 x, s32 y, u16 angle, f32 scale) { + Mat4 matrix; + //printf("panel %d %d %d\n", x, (s32)OTRGetDimensionFromLeftEdge(x), (s32)OTRGetDimensionFromLeftEdge(0)); + + printf("X %d Y %d\n", x, y); + mtxf_translation_x_y_rotate_z_scale_x_y(matrix, x, y, angle, scale); + // convert_to_fixed_point_matrix(&gGfxPool->mtxHud[gMatrixHudCount], matrix); + // gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(&gGfxPool->mtxHud[gMatrixHudCount++]), + // G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); + + AddHudMatrix(matrix, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); +} + void func_80042330_portrait(s32 x, s32 y, u16 angle, f32 scale, s16 lapCount) { Mat4 matrix; //printf("panel %d %d %d\n", x, (s32)OTRGetDimensionFromLeftEdge(x), (s32)OTRGetDimensionFromLeftEdge(0)); |
