Skip to content

Commit

Permalink
- Set filtering mode in gxtexconv script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Sep 1, 2024
1 parent 28101a3 commit 26a59e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions cube/swiss/source/gui/FrameBufferMagic.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,29 +325,23 @@ static void init_textures()
TPL_OpenTPLFromMemory(&imagesTPL, (void *)images_tpl, images_tpl_size);
TPL_OpenTPLFromMemory(&buttonsTPL, (void *)buttons_tpl, buttons_tpl_size);
TPL_GetTextureCI(&imagesTPL, backdrop, &backdropTexObj, &backdropTlutObj, GX_TLUT0);
GX_InitTexObjFilterMode(&backdropTexObj, GX_LINEAR, GX_NEAR);
GX_InitTexObjUserData(&backdropTexObj, &backdropTlutObj);
TPL_GetTexture(&imagesTPL, backdrop_ind, &backdropIndTexObj);
GX_InitTexObjFilterMode(&backdropIndTexObj, GX_NEAR, GX_NEAR);
GX_InitTexObjUserData(&backdropIndTexObj, &backdropTexObj);
TPL_GetTexture(&imagesTPL, gcdvdsmall, &gcdvdsmallTexObj);
TPL_GetTextureCI(&imagesTPL, sdsmall, &sdsmallTexObj, &sdsmallTlutObj, GX_TLUT0);
GX_InitTexObjUserData(&sdsmallTexObj, &sdsmallTlutObj);
TPL_GetTextureCI(&imagesTPL, hddimg, &hddTexObj, &hddTlutObj, GX_TLUT0);
GX_InitTexObjUserData(&hddTexObj, &hddTlutObj);
TPL_GetTextureCI(&imagesTPL, qoobimg, &qoobTexObj, &qoobTlutObj, GX_TLUT0);
GX_InitTexObjFilterMode(&qoobTexObj, GX_LINEAR, GX_NEAR);
GX_InitTexObjUserData(&qoobTexObj, &qoobTlutObj);
TPL_GetTexture(&imagesTPL, qoobimg_ind, &qoobIndTexObj);
GX_InitTexObjFilterMode(&qoobIndTexObj, GX_NEAR, GX_NEAR);
TPL_GetTexture(&imagesTPL, wodeimg, &wodeimgTexObj);
TPL_GetTexture(&imagesTPL, wiikeyimg, &wiikeyTexObj);
TPL_GetTexture(&imagesTPL, systemimg, &systemTexObj);
TPL_GetTextureCI(&imagesTPL, memcardimg, &memcardTexObj, &memcardTlutObj, GX_TLUT0);
GX_InitTexObjFilterMode(&memcardTexObj, GX_LINEAR, GX_NEAR);
GX_InitTexObjUserData(&memcardTexObj, &memcardTlutObj);
TPL_GetTexture(&imagesTPL, memcardimg_ind, &memcardIndTexObj);
GX_InitTexObjFilterMode(&memcardIndTexObj, GX_NEAR, GX_NEAR);
TPL_GetTextureCI(&imagesTPL, usbgeckoimg, &usbgeckoTexObj, &usbgeckoTlutObj, GX_TLUT0);
GX_InitTexObjUserData(&usbgeckoTexObj, &usbgeckoTlutObj);
TPL_GetTexture(&imagesTPL, bbaimg, &bbaTexObj);
Expand Down
12 changes: 6 additions & 6 deletions cube/swiss/source/images/images.scf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<filepath="backdrop.png" id="backdrop" colfmt=8 palfmt=0 />
<filepath="backdrop_ind.png" id="backdrop_ind" colfmt=3 />
<filepath="backdrop.png" id="backdrop" colfmt=8 palfmt=0 magfilt=0 />
<filepath="backdrop_ind.png" id="backdrop_ind" colfmt=3 minfilt=0 magfilt=0 />
<filepath="bba.tif" id="bbaimg" colfmt=3 />
<filepath="dir.tif" id="dirimg" colfmt=6 />
<filepath="dol.tif" id="dolimg" colfmt=6 />
Expand All @@ -13,14 +13,14 @@
<filepath="gcnet.tif" id="gcnetimg" colfmt=0 />
<filepath="hdd.tif" id="hddimg" colfmt=9 palfmt=0 />
<filepath="m2loader.tif" id="m2loaderimg" colfmt=0 />
<filepath="memcard.png" id="memcardimg" colfmt=9 palfmt=0 />
<filepath="memcard_ind.png" id="memcardimg_ind" colfmt=1 />
<filepath="memcard.png" id="memcardimg" colfmt=9 palfmt=0 magfilt=0 />
<filepath="memcard_ind.png" id="memcardimg_ind" colfmt=1 minfilt=0 magfilt=0 />
<filepath="mp3.tif" id="mp3img" colfmt=6 />
<filepath="ntscj.tif" id="ntscjimg" colfmt=5 />
<filepath="ntscu.tif" id="ntscuimg" colfmt=5 />
<filepath="pal.tif" id="palimg" colfmt=5 />
<filepath="qoob.png" id="qoobimg" colfmt=9 palfmt=0 />
<filepath="qoob_ind.png" id="qoobimg_ind" colfmt=1 />
<filepath="qoob.png" id="qoobimg" colfmt=9 palfmt=0 magfilt=0 />
<filepath="qoob_ind.png" id="qoobimg_ind" colfmt=1 minfilt=0 magfilt=0 />
<filepath="sdsmall.tif" id="sdsmall" colfmt=9 palfmt=0 />
<filepath="systemimg.tif" id="systemimg" colfmt=3 />
<filepath="usbgecko.tif" id="usbgeckoimg" colfmt=9 palfmt=0 />
Expand Down

0 comments on commit 26a59e3

Please sign in to comment.