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:
parent
dda78f9e2c
commit
fec5cd84af
24 changed files with 134 additions and 107 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue