mirror of
https://github.com/holub/mame
synced 2025-06-28 07:04:35 +03:00
Fixed create_window_class
First, try to unregister previously registered class.
This commit is contained in:
parent
ee826f16cb
commit
d7cf28647a
@ -891,6 +891,8 @@ static void create_window_class(void)
|
||||
wc.lpfnWndProc = winwindow_video_window_proc_ui;
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2));
|
||||
|
||||
UnregisterClass(wc.lpszClassName, wc.hInstance);
|
||||
|
||||
// register the class; fail if we can't
|
||||
if (!RegisterClass(&wc))
|
||||
@ -1393,7 +1395,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR
|
||||
break;
|
||||
}
|
||||
return DefWindowProc(wnd, message, wparam, lparam);
|
||||
}
|
||||
}c
|
||||
|
||||
// track whether we are in the foreground
|
||||
case WM_ACTIVATEAPP:
|
||||
|
Loading…
Reference in New Issue
Block a user