Fixed display of icon in windows (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-05-15 13:20:26 +00:00
parent 2139f1b17d
commit 206d7d92c6
3 changed files with 3 additions and 3 deletions

View File

@ -407,7 +407,7 @@ void debugwin_init_windows(running_machine &machine)
wc.hInstance = GetModuleHandle(NULL); wc.hInstance = GetModuleHandle(NULL);
wc.lpfnWndProc = debugwin_window_proc; wc.lpfnWndProc = debugwin_window_proc;
wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2));
wc.lpszMenuName = NULL; wc.lpszMenuName = NULL;
wc.hbrBackground = NULL; wc.hbrBackground = NULL;
wc.style = 0; wc.style = 0;

View File

@ -44,4 +44,4 @@
1 24 MOVEABLE PURE "mame.man" 1 24 MOVEABLE PURE "mame.man"
IDI_ICON_MAME ICON DISCARDABLE "mame.ico" 2 ICON DISCARDABLE "mame.ico"

View File

@ -877,7 +877,7 @@ static void create_window_class(void)
wc.hInstance = GetModuleHandle(NULL); wc.hInstance = GetModuleHandle(NULL);
wc.lpfnWndProc = winwindow_video_window_proc_ui; wc.lpfnWndProc = winwindow_video_window_proc_ui;
wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(2));
// register the class; fail if we can't // register the class; fail if we can't
if (!RegisterClass(&wc)) if (!RegisterClass(&wc))