diff options
| author | Mattias Blum <142374929+mattias-blum@users.noreply.github.com> | 2025-04-11 16:37:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 16:37:42 -0400 |
| commit | 5f287fcaeebc6b728e5a94f7039b2d03ffc88c99 (patch) | |
| tree | 2febd80425758cdb261ce2ae2fdf0a740e6c7a93 /src/d/d_s_name.cpp | |
| parent | 6aeaaef643db58fd2ed26d78eada3a33666f6a3b (diff) | |
d_camera 28% (#732)
* initial progress
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* fix outdated member names
* more progress
* more progress
* more progress
* more progress
* more progress
* more progress
* fixed deprecated member references
* more progress
* more progress
* more progress
* fix deprecated member references
* more progress
* more progress
* more progress
* more progress
* more progress
* check in for review
* remove comment
* initial PR changes
* more PR changes
* more PR changes
* added anonymous struct as class member
* reverted changes to `stage_camera2_data_class`
* added `dCamera_event_data`, `dCamera_monitoring_things` and `dCamera_DMC_system` from debug maps
* more progress
* more progress
* realmatch for `camera_draw`
* PR changes
* fix broken merge
* formatting
* Reverted change to `camSphChkdata` that caused `sph_chk_callback` match to regress
* Reverted change to `BG` struct that caused ctor and dtor match to regress
Diffstat (limited to 'src/d/d_s_name.cpp')
| -rw-r--r-- | src/d/d_s_name.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_s_name.cpp b/src/d/d_s_name.cpp index eb6c480f..c5785024 100644 --- a/src/d/d_s_name.cpp +++ b/src/d/d_s_name.cpp @@ -152,7 +152,7 @@ cPhs_State dScnName_c::create() { field_0x2a0 = 160000.0f; field_0x2a4 = 60.0f; f32 aspect = dComIfGp_getWindow(0)->getViewPort()->mWidth / dComIfGp_getWindow(0)->getViewPort()->mHeight; - field_0x2a8 = aspect * g_HIO.field_0x0c; + field_0x2a8 = aspect * fapGmHIO_getAspectRatio(); field_0x2ac.x = 9377.0f; field_0x2ac.y = 0.0; field_0x2ac.z = 7644.0; @@ -960,7 +960,7 @@ void dDlst_FLSEL_CLOTH_c::draw() { Mtx44 mtx; view_port_class* viewport = dComIfGp_getCurrentViewport(); f32 aspect = viewport->mWidth / viewport->mHeight; - C_MTXPerspective(mtx, 30.0f, aspect * g_HIO.field_0x0c, 1.0f, 100000.0f); + C_MTXPerspective(mtx, 30.0f, aspect * fapGmHIO_getAspectRatio(), 1.0f, 100000.0f); GXSetProjection(mtx, GX_PERSPECTIVE); cloth_c->draw(0.0f, (GXColor){0xe3, 0xff, 0xb3, 0xff}, (GXColor){0x00, 0x00, 0x00, 0x00}, 0); dComIfGp_getCurrentGrafPort()->setPort(); |
