win32_gui: couple of perm_invent tweaks
This commit is contained in:
@@ -302,6 +302,8 @@ int mswin_map_mode(HWND hWnd, int mode)
|
||||
|
||||
mswin_map_stretch(hWnd, &mapSize, TRUE);
|
||||
|
||||
mswin_update_inventory(); /* for perm_invent to hide/show tiles */
|
||||
|
||||
return oldMode;
|
||||
}
|
||||
|
||||
|
||||
@@ -1459,10 +1459,10 @@ void mswin_menu_window_size (HWND hWnd, LPSIZE sz)
|
||||
extra_cx = (wrt.right-wrt.left) - sz->cx;
|
||||
|
||||
if( data->type==MENU_TYPE_MENU ) {
|
||||
sz->cx = max(sz->cx, data->menu.menu_cx + GetSystemMetrics(SM_CXVSCROLL) );
|
||||
sz->cx = data->menu.menu_cx + GetSystemMetrics(SM_CXVSCROLL);
|
||||
} else {
|
||||
/* Use the width of the text box */
|
||||
sz->cx = max( sz->cx, data->text.text_box_size.cx + 2*GetSystemMetrics(SM_CXVSCROLL));
|
||||
sz->cx = data->text.text_box_size.cx + 2*GetSystemMetrics(SM_CXVSCROLL);
|
||||
}
|
||||
sz->cx += extra_cx;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user