From: nethack.allison Date: Mon, 1 Apr 2002 21:27:23 +0000 (+0000) Subject: (from Yitzhak) X-Git-Tag: MOVE2GIT~2825 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3cef1b49bbdf9bd9e95677944a9de20f6e36519;p=nethack (from Yitzhak) fixes a little problem noticed in mhsplash.c while trying to figure out my debugger problems. --- diff --git a/win/win32/mhsplash.c b/win/win32/mhsplash.c index dba08ac60..956a17212 100644 --- a/win/win32/mhsplash.c +++ b/win/win32/mhsplash.c @@ -87,14 +87,11 @@ BOOL CALLBACK NHSplashWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa { case WM_INITDIALOG: /* set text control font */ - hdc = GetDC(hWnd); hdc = GetDC(hWnd); SendMessage(hWnd, WM_SETFONT, (WPARAM)mswin_get_font(NHW_TEXT, ATR_NONE, hdc, FALSE), 0); ReleaseDC(hWnd, hdc); - ReleaseDC(hWnd, hdc); - SetFocus(GetDlgItem(hWnd, IDOK)); return FALSE;