Move TexthookMode enum to config.h

This commit is contained in:
kichikuou
2024-12-14 10:22:38 +09:00
parent 989b6a844d
commit f8acad01d8
6 changed files with 19 additions and 17 deletions
+3 -3
View File
@@ -147,13 +147,13 @@ enum {
void texthook_set_mode(TexthookMode mode) {
#ifndef __EMSCRIPTEN__
switch (mode) {
case TEXTHOOK_NONE:
case TexthookMode::NONE:
handler = &none;
break;
case TEXTHOOK_PRINT:
case TexthookMode::PRINT:
handler = &print;
break;
case TEXTHOOK_COPY:
case TexthookMode::COPY:
handler = ©
break;
}