From 3a357a98d271fd451b3e7ebe3bbf860bd38f9991 Mon Sep 17 00:00:00 2001 From: leejeonghun Date: Tue, 14 May 2024 23:55:16 +0900 Subject: [PATCH] Make furigana invisible --- ddraw/hook.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ddraw/hook.cc b/ddraw/hook.cc index 16797fa..07f1084 100644 --- a/ddraw/hook.cc +++ b/ddraw/hook.cc @@ -53,8 +53,14 @@ BOOL WINAPI hook_textouta(HDC hdc, int x, int y, LPCSTR lpString, int c) { result = textouta.call_origin( hdc, x, y, fonts_row, strlen(fonts_row)); SelectObject(hdc, org_font); - } else + } else if (font_raw_cnt == 0) { + char remove_furigana[0x67] = { 0 }; + memcpy(remove_furigana, lpString, sizeof(remove_furigana) - 1); + result = textouta.call_origin( + hdc, x, y, remove_furigana, sizeof(remove_furigana) - 1); + } else { result = textouta.call_origin(hdc, x, y, lpString, c); + } font_raw_cnt++;