Merge pull request #1118 from sards3/master
Add new hard disk dialog: fix broken CHS when changing back from diff image format
This commit is contained in:
@@ -3190,14 +3190,20 @@ hdd_add_file_open_error:
|
|||||||
if (!wcscmp(text_buf, L"(N/A)")) {
|
if (!wcscmp(text_buf, L"(N/A)")) {
|
||||||
settings_enable_window(hdlg, IDC_EDIT_HD_SPT, TRUE);
|
settings_enable_window(hdlg, IDC_EDIT_HD_SPT, TRUE);
|
||||||
set_edit_box_contents(hdlg, IDC_EDIT_HD_SPT, 17);
|
set_edit_box_contents(hdlg, IDC_EDIT_HD_SPT, 17);
|
||||||
|
spt = 17;
|
||||||
settings_enable_window(hdlg, IDC_EDIT_HD_HPC, TRUE);
|
settings_enable_window(hdlg, IDC_EDIT_HD_HPC, TRUE);
|
||||||
set_edit_box_contents(hdlg, IDC_EDIT_HD_HPC, 15);
|
set_edit_box_contents(hdlg, IDC_EDIT_HD_HPC, 15);
|
||||||
|
hpc = 15;
|
||||||
settings_enable_window(hdlg, IDC_EDIT_HD_CYL, TRUE);
|
settings_enable_window(hdlg, IDC_EDIT_HD_CYL, TRUE);
|
||||||
set_edit_box_contents(hdlg, IDC_EDIT_HD_CYL, 1023);
|
set_edit_box_contents(hdlg, IDC_EDIT_HD_CYL, 1023);
|
||||||
|
tracks = 1023;
|
||||||
settings_enable_window(hdlg, IDC_EDIT_HD_SIZE, TRUE);
|
settings_enable_window(hdlg, IDC_EDIT_HD_SIZE, TRUE);
|
||||||
set_edit_box_contents(hdlg, IDC_EDIT_HD_SIZE, (uint32_t) ((uint64_t)17 * 15 * 1023 * 512 >> 20));
|
set_edit_box_contents(hdlg, IDC_EDIT_HD_SIZE, (uint32_t) ((uint64_t)17 * 15 * 1023 * 512 >> 20));
|
||||||
settings_enable_window(hdlg, IDC_COMBO_HD_TYPE, TRUE);
|
size = (uint64_t)17 * 15 * 1023 * 512;
|
||||||
|
|
||||||
|
settings_reset_content(hdlg, IDC_COMBO_HD_TYPE);
|
||||||
hdconf_initialize_hdt_combo(hdlg);
|
hdconf_initialize_hdt_combo(hdlg);
|
||||||
|
settings_enable_window(hdlg, IDC_COMBO_HD_TYPE, TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
no_update = 0;
|
no_update = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user