From 4436f3e13110dc3b3771f7e3ef3d18d544255993 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 30 Oct 2016 17:00:23 -0400 Subject: [PATCH] disable texture filtering (use nearest-neighbor) for sharper pixels --- SDL/src/video/wii/SDL_wiivideo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SDL/src/video/wii/SDL_wiivideo.c b/SDL/src/video/wii/SDL_wiivideo.c index 4247d11..086aa6b 100644 --- a/SDL/src/video/wii/SDL_wiivideo.c +++ b/SDL/src/video/wii/SDL_wiivideo.c @@ -145,6 +145,10 @@ draw_init () else GX_InitTexObj (&texobj, texturemem, currentwidth, currentheight, GX_TF_RGBA8, GX_CLAMP, GX_CLAMP, GX_FALSE); + // for sharper pixels. otherwise there is a noticeable blur applied to the entire image + // due to the default linear/bilinear default filtering + GX_InitTexObjFilterMode(&texobj, GX_NEAR, GX_NEAR); + GX_LoadTexObj (&texobj, GX_TEXMAP0); // load texture object so its ready to use }