英文语法修改Registry->Register

This commit is contained in:
2025-07-03 10:15:27 +08:00
parent fd0929d89c
commit b6cf73deca
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ namespace hgl
{
constexpr wchar_t WIN_CLASS_NAME[] = L"CMGameEngine/ULRE Window Class";
bool RegistryWinClass(HINSTANCE hInstance)
bool RegisterWinClass(HINSTANCE hInstance)
{
WNDCLASSEXW win_class{};
@@ -100,7 +100,7 @@ namespace hgl
hInstance = GetModuleHandleW(nullptr);
if(!RegistryWinClass(hInstance))
if(!RegisterWinClass(hInstance))
return(false);
if(!Create())

View File

@@ -11,7 +11,7 @@ namespace hgl
is_close=true;
is_min=false;
input_event.RegistryEventDispatch(this);
input_event.RegisterEventDispatch(this);
}
void Window::OnResize(uint w,uint h)
@@ -39,7 +39,7 @@ namespace hgl
void Window::OnClose()
{
input_event.UnregistryEventDispatch(this);
input_event.UnregisterEventDispatch(this);
is_close=true;
}