win32_gui: couple of perm_invent tweaks

This commit is contained in:
Alex Kompel
2015-04-13 23:47:42 -07:00
parent 7eefb8a250
commit 3c6f01f022
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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 {