From bca120f6cdeb1e7c8db8ec5976c7878248964779 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sun, 7 Apr 2024 23:58:15 -0600 Subject: [PATCH 1/2] First gamma implementation --- libultraship | 2 +- src/sys/sys_main.c | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libultraship b/libultraship index 2acdfe8e..b5b45993 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit 2acdfe8e1fc5d8759d98c9857bc6fe1fd37a3ba9 +Subproject commit b5b45993b9bb9a03b090530037145efe4dee3173 diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c index fc56c53c..5471cfc1 100644 --- a/src/sys/sys_main.c +++ b/src/sys/sys_main.c @@ -190,17 +190,16 @@ void Main_SetVIMode(void) { // osViSetMode(&osViModeNtscLan1); // break; // } - // if (sGammaMode != 0) { - // osViSetSpecialFeatures(OS_VI_DITHER_FILTER_ON | OS_VI_DIVOT_OFF | OS_VI_GAMMA_ON | OS_VI_GAMMA_DITHER_ON); - // } else { - // osViSetSpecialFeatures(OS_VI_DITHER_FILTER_ON | OS_VI_DIVOT_OFF | OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF); - // } + if (sGammaMode != 0) { + osViSetSpecialFeatures(OS_VI_DITHER_FILTER_ON | OS_VI_DIVOT_OFF | OS_VI_GAMMA_ON | OS_VI_GAMMA_DITHER_ON); + } else { + osViSetSpecialFeatures(OS_VI_DITHER_FILTER_ON | OS_VI_DIVOT_OFF | OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF); + } } void SerialInterface_ThreadUpdate() { OSMesg sp34; - switch (sp34.data32) { case SI_READ_SAVE: Save_ReadData(); From 59e2eed10e63a06b4e94c6ed86b921ebaee17058 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Mon, 8 Apr 2024 00:03:54 -0600 Subject: [PATCH 2/2] Stubbed again Texture_Scroll since keeps crashing because god knows why --- src/engine/fox_std_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/fox_std_lib.c b/src/engine/fox_std_lib.c index 4754b7a6..51e30617 100644 --- a/src/engine/fox_std_lib.c +++ b/src/engine/fox_std_lib.c @@ -26,6 +26,7 @@ s32 Graphics_Printf(const char* fmt, ...) { } void Texture_Scroll(u16* texture, s32 width, s32 height, u8 mode) { + return; // LTodo: [HD-Textures] This is broken u16* temp_t0 = LOAD_ASSET(texture); u16 temp_a3;