From a5c3642cafde26e74fd92db9ef8a8d996569fadc Mon Sep 17 00:00:00 2001 From: qndel Date: Fri, 27 Sep 2019 15:30:55 +0200 Subject: [PATCH] [hellfire] init_create_window bin exact --- Source/init.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/init.cpp b/Source/init.cpp index ff9d824e6..f10b7b493 100644 --- a/Source/init.cpp +++ b/Source/init.cpp @@ -201,7 +201,11 @@ void init_create_window(int nCmdShow) wcex.hIcon = LoadIcon(ghInst, MAKEINTRESOURCE(IDI_ICON1)); wcex.hCursor = LoadCursor(0, IDC_ARROW); wcex.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); +#ifdef HELLFIRE + wcex.lpszMenuName = "HELLFIRE"; +#else wcex.lpszMenuName = "DIABLO"; +#endif wcex.lpszClassName = "DIABLO"; wcex.hIconSm = (HICON)LoadImage(ghInst, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); if (!RegisterClassEx(&wcex)) @@ -214,7 +218,11 @@ void init_create_window(int nCmdShow) nHeight = SCREEN_HEIGHT; else nHeight = GetSystemMetrics(SM_CYSCREEN); +#ifdef HELLFIRE + hWnd = CreateWindowEx(0, "DIABLO", "HELLFIRE", WS_POPUP, 0, 0, nWidth, nHeight, NULL, NULL, ghInst, NULL); +#else hWnd = CreateWindowEx(0, "DIABLO", "DIABLO", WS_POPUP, 0, 0, nWidth, nHeight, NULL, NULL, ghInst, NULL); +#endif if (!hWnd) app_fatal("Unable to create main window"); ShowWindow(hWnd, SW_SHOWNORMAL); // nCmdShow used only in beta: ShowWindow(hWnd, nCmdShow)