Update SettingsPage-Plugin.cpp

Fix spacing, title case, capitalization, and add newline
This commit is contained in:
Derek "Turtle" Roe 2021-03-17 21:12:07 -05:00
parent bb6c21918c
commit 5d2d412c45
1 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ COptionPluginPage::COptionPluginPage(HWND hParent, const RECT & rcDispay)
return; return;
} }
//Set the text for all gui Items // Set the text for all GUI items
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str()); SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str()); SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str()); SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
@ -98,7 +98,7 @@ void COptionPluginPage::ShowAboutButton(int id)
return; return;
} }
//Load the plugin // Load the plugin
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS); UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
HMODULE hLib = LoadLibrary(stdstr((const char *)(Plugin->FullPath)).ToUTF16().c_str()); HMODULE hLib = LoadLibrary(stdstr((const char *)(Plugin->FullPath)).ToUTF16().c_str());
SetErrorMode(LastErrorMode); SetErrorMode(LastErrorMode);
@ -107,11 +107,11 @@ void COptionPluginPage::ShowAboutButton(int id)
return; return;
} }
//Get DLL about // Get DLL about
void(CALL *DllAbout) (HWND hWnd); void(CALL *DllAbout) (HWND hWnd);
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout"); DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
//call the function from the dll // Call the function from the DLL
DllAbout(m_hWnd); DllAbout(m_hWnd);
FreeLibrary(hLib); FreeLibrary(hLib);
@ -319,4 +319,4 @@ void COptionPluginPage::HleAudioChanged(UINT /*Code*/, int id, HWND /*ctl*/)
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0); SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
break; break;
} }
} }