summaryrefslogtreecommitdiff
path: root/src/code/speed_meter.c
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2020-06-13 22:59:58 -0400
committerGitHub <noreply@github.com>2020-06-13 22:59:58 -0400
commit031d946db7134194b03a7b08018944ee0b0db7df (patch)
tree5402070e1c3b5fb67284538c4a4e277c3520abf5 /src/code/speed_meter.c
parentdf3bfbc16885008e7ce69f8a84d1715b13d4029f (diff)
z_select decompiled, 1 non matching left (#202)
* First pass z_select * lots of progress. 2 non matchings and data stuff needed * match Select_LoadGame * z_select almost ok, 1 func left * remove comments * remove comments and add description * remove unused flg_set asm * set_next_gamestate macro * pr suggestions 1 * pr suggestions 2 * map -> scene * pr suggestions 3 Co-authored-by: Kelebek1 <eeeedddccc@hotmail.co.uk>
Diffstat (limited to 'src/code/speed_meter.c')
-rw-r--r--src/code/speed_meter.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/code/speed_meter.c b/src/code/speed_meter.c
index 0e04fa954..d30b10c46 100644
--- a/src/code/speed_meter.c
+++ b/src/code/speed_meter.c
@@ -56,7 +56,6 @@ void SpeedMeter_DrawTimeEntries(SpeedMeter* this, GraphicsContext* gfxCtx) {
u32 pad2[3];
Gfx* gfx;
Gfx* dispRefs[5];
- Viewport viewport;
uly = this->y;
lry = this->y + 2;
@@ -78,8 +77,8 @@ void SpeedMeter_DrawTimeEntries(SpeedMeter* this, GraphicsContext* gfxCtx) {
View_Init(&view, gfxCtx);
view.flags = 0xA;
- VIEWPORT_INIT(viewport, SCREEN_HEIGHT, SCREEN_WIDTH, 0, 0);
- View_SetViewport(&view, &viewport);
+ SET_FULLSCREEN_VIEWPORT(&view);
+
gfx = gfxCtx->overlay.p;
func_800AB9EC(&view, 0xF, &gfx);
@@ -123,8 +122,6 @@ void SpeedMeter_DrawAllocEntry(SpeedMeterAllocEntry* this, GraphicsContext* gfxC
View view;
Gfx* gfx;
Gfx* dispRefs[5];
- Viewport viewport;
- u32 pad2;
if (this->maxval == 0) {
osSyncPrintf(VT_FGCOL(RED));
@@ -136,9 +133,8 @@ void SpeedMeter_DrawAllocEntry(SpeedMeterAllocEntry* this, GraphicsContext* gfxC
View_Init(&view, gfxCtx);
view.flags = 0xA;
- VIEWPORT_INIT(viewport, SCREEN_HEIGHT, SCREEN_WIDTH, 0, 0);
+ SET_FULLSCREEN_VIEWPORT(&view);
- View_SetViewport(&view, &viewport);
gfx = gfxCtx->overlay.p;
func_800AB9EC(&view, 0xF, &gfx);