英文语法修改Registry->Register
This commit is contained in:
@@ -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())
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user