mirror of
https://github.com/zeldaret/oot
synced 2026-06-02 02:00:24 -04:00
Decompile speed_meter.c and add VIEWPORT_INIT macro (#127)
* Decompile speed_meter.c and add VIEWPORT_INIT macro - speed_meter.c: OK - Add VIEWPORT_INIT(viewport, by, rx, ty, lx) macro * get rid of some magic numbers * use early return instead of a big if block in SpeedMeter_DrawTimeEntries
This commit is contained in:
+1
-4
@@ -61,10 +61,7 @@ void Sample_SetupView(SampleContext* this) {
|
||||
gfxCtx = this->state.gfxCtx;
|
||||
View_Init(view, gfxCtx);
|
||||
|
||||
// clang-format off
|
||||
viewport.bottomY = SCREEN_HEIGHT; viewport.rightX = SCREEN_WIDTH;
|
||||
viewport.topY = 0; viewport.leftX = 0;
|
||||
// clang-format on
|
||||
VIEWPORT_INIT(viewport, SCREEN_HEIGHT, SCREEN_WIDTH, 0, 0);
|
||||
|
||||
View_SetViewport(view, &viewport);
|
||||
func_800AA460(view, 60, 10, 12800);
|
||||
|
||||
Reference in New Issue
Block a user