1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-17 13:24:45 +00:00

Doc shrink_window, rename system to Letterbox (#1341)

* docs

* missed some hex

* document Gfx_SetupFrame

* review
This commit is contained in:
fig02 2022-08-15 09:39:06 -04:00 committed by GitHub
parent dda78f9e2c
commit fec5cd84af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 134 additions and 107 deletions

View file

@ -135,7 +135,7 @@ void View_GetViewport(View* view, Viewport* viewport) {
*viewport = view->viewport;
}
void View_ApplyShrinkWindow(View* view) {
void View_ApplyLetterbox(View* view) {
s32 varY;
s32 varX;
s32 pad;
@ -145,7 +145,7 @@ void View_ApplyShrinkWindow(View* view) {
s32 lry;
GraphicsContext* gfxCtx = view->gfxCtx;
varY = ShrinkWindow_GetCurrentVal();
varY = Letterbox_GetSize();
varX = -1; // The following is optimized to varX = 0 but affects codegen
@ -296,7 +296,7 @@ s32 View_ApplyPerspective(View* view) {
View_ViewportToVp(vp, &view->viewport);
view->vp = *vp;
View_ApplyShrinkWindow(view);
View_ApplyLetterbox(view);
gSPViewport(POLY_OPA_DISP++, vp);
gSPViewport(POLY_XLU_DISP++, vp);
@ -398,7 +398,7 @@ s32 View_ApplyOrtho(View* view) {
View_ViewportToVp(vp, &view->viewport);
view->vp = *vp;
View_ApplyShrinkWindow(view);
View_ApplyLetterbox(view);
gSPViewport(POLY_OPA_DISP++, vp);
gSPViewport(POLY_XLU_DISP++, vp);