Skip to content

Commit

Permalink
Make furigana invisible
Browse files Browse the repository at this point in the history
  • Loading branch information
leejeonghun committed May 14, 2024
1 parent 2e36c97 commit 3a357a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ddraw/hook.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ BOOL WINAPI hook_textouta(HDC hdc, int x, int y, LPCSTR lpString, int c) {
result = textouta.call_origin<decltype(&TextOutA)>(
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<decltype(&TextOutA)>(
hdc, x, y, remove_furigana, sizeof(remove_furigana) - 1);
} else {
result = textouta.call_origin<decltype(&TextOutA)>(hdc, x, y, lpString, c);
}

font_raw_cnt++;

Expand Down

0 comments on commit 3a357a9

Please sign in to comment.