summaryrefslogtreecommitdiff
path: root/src/render_objects.c
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-07-28 21:55:46 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-07-28 21:55:46 -0600
commit212436726fc5e3cc5425e8c0de1b363ccae46ee4 (patch)
tree3c2c38c8c0d13552fe4ebf5711feea91945a03d0 /src/render_objects.c
parent7eb925d3515cbe30e9d97319ee0b878b8d7d6c4b (diff)
Patched hud textures to draw on point mode
Diffstat (limited to 'src/render_objects.c')
-rw-r--r--src/render_objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render_objects.c b/src/render_objects.c
index 11704228a..768b0b73f 100644
--- a/src/render_objects.c
+++ b/src/render_objects.c
@@ -2023,10 +2023,12 @@ void draw_hud_2d_texture(s32 x, s32 y, u32 width, u32 height, u8* texture) {
void draw_hud_2d_texture_wide(s32 x, s32 y, u32 width, u32 height, u8* texture) {
gSPDisplayList(gDisplayListHead++, D_0D008108);
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
+ gDPSetTextureFilter(gDisplayListHead++, G_TF_POINT);
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
load_texture_block_rgba16_mirror(texture, width, height);
func_8004B97C_wide(x - (width >> 1), y - (height >> 1), width, height, 0);
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
+ gDPSetTextureFilter(gDisplayListHead++, G_TF_BILERP);
}
void func_8004C450(s32 arg0, s32 arg1, u32 arg2, u32 arg3, u8* texture) {