This commit is contained in:
love-code-yeyixiao 2024-03-24 14:22:38 +08:00
parent b2f4f8c439
commit bf1eb51a6f
1 changed files with 0 additions and 10 deletions

View File

@ -291,11 +291,6 @@ _FX int Gui_FixTitleW(HWND hWnd, WCHAR *lpWindowTitle, int len)
{ {
if (len >= (int)Gui_TitleSuffixW_len * 2 && if (len >= (int)Gui_TitleSuffixW_len * 2 &&
Gui_ShouldCreateTitle(hWnd)) { Gui_ShouldCreateTitle(hWnd)) {
if (SbieApi_QueryConfBool(NULL, "NoTitle", FALSE)) {
lpWindowTitle[0] = '\0';
len = 0;
return len;
}
if (wmemcmp(lpWindowTitle, &Gui_TitleSuffixW[1], 3) == 0) { if (wmemcmp(lpWindowTitle, &Gui_TitleSuffixW[1], 3) == 0) {
len -= 4; len -= 4;
wmemmove(lpWindowTitle, lpWindowTitle + 4, len); wmemmove(lpWindowTitle, lpWindowTitle + 4, len);
@ -330,11 +325,6 @@ _FX int Gui_FixTitleA(HWND hWnd, UCHAR *lpWindowTitle, int len)
{ {
if (len >= (int)Gui_TitleSuffixA_len * 2 && if (len >= (int)Gui_TitleSuffixA_len * 2 &&
Gui_ShouldCreateTitle(hWnd)) { Gui_ShouldCreateTitle(hWnd)) {
if (SbieApi_QueryConfBool(NULL, "NoTitle", FALSE)) {
lpWindowTitle[0] = '\0';
len = 0;
return len;
}
if (memcmp(lpWindowTitle, &Gui_TitleSuffixA[1], 3) == 0) { if (memcmp(lpWindowTitle, &Gui_TitleSuffixA[1], 3) == 0) {
len -= 4; len -= 4;
memmove(lpWindowTitle, lpWindowTitle + 4, len); memmove(lpWindowTitle, lpWindowTitle + 4, len);