From 652603e11a25d5f0f81f206fb20df95c811316fc Mon Sep 17 00:00:00 2001 From: abnormalhare Date: Thu, 23 Oct 2025 13:13:49 -0400 Subject: [PATCH] start ksNesDrawEmuResult --- src/static/Famicom/ks_nes_draw.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/static/Famicom/ks_nes_draw.cpp b/src/static/Famicom/ks_nes_draw.cpp index a00b94d4..645c40eb 100644 --- a/src/static/Famicom/ks_nes_draw.cpp +++ b/src/static/Famicom/ks_nes_draw.cpp @@ -515,7 +515,24 @@ void ksNesDrawOBJI8ToEFB(ksNesCommonWorkObj* wp, u8* buf) { GXEnd(); } -void ksNesDrawEmuResult(ksNesCommonWorkObj*) { +void ksNesDrawEmuResult(ksNesCommonWorkObj* wp) { + int i; + GXTexObj obj; + + for (i = 0; i < 228; i++) { + if ((wp->work_priv._0B40[i + 8]._19 & 0xE1) != 0xFF) { + if ((i & 1) != 0) { + i++; + } + } + } + + GXInitTexObj(&obj, wp->result_bufp, 256, 228, GX_TF_I8, GX_CLAMP, GX_CLAMP, 0); + + // ... + + GXCopyTex(wp->result_bufp, GX_FALSE); + GXPixModeSync(); } void ksNesDraw(ksNesCommonWorkObj* wp, ksNesStateObj* state) {