(from <Someone>)

- added menu option to show/hide keypad window
This commit is contained in:
nethack.allison
2002-07-24 00:21:52 +00:00
parent bdc6c965af
commit 822a633563
4 changed files with 53 additions and 23 deletions

View File

@@ -692,7 +692,12 @@ void CalculateCellSize(HWND hWnd, LPSIZE pSize)
hdc = GetDC(hWnd);
pSize->cx = (clrt.right - clrt.left)/NH_CMDPAD_COLS;
pSize->cy = max(pSize->cx, 10*GetDeviceCaps(hdc, LOGPIXELSY)/72);
pSize->cy = min(
max( pSize->cx,
10*GetDeviceCaps(hdc, LOGPIXELSY)/72 // minimum cell size - 10 points
),
20*GetDeviceCaps(hdc, LOGPIXELSY)/72 // maximum cell size - 20 points
);
ReleaseDC(hWnd, hdc);
}