TCHAR tmp[10], tmp2[MAX_DPATH];
int listview_column_width[HARDDISK_COLUMNS];
DWORD extraflags = 0;
+ int listpadding;
if (cachedlist) {
if (lv_old_type >= 0) {
}
+ scalaresource_listview_font_info(&listpadding);
+ listpadding *= 2;
int flags = LVS_EX_DOUBLEBUFFER | extraflags;
if (lv_type != LV_MISC1)
flags |= LVS_EX_ONECLICKACTIVATE | LVS_EX_UNDERLINEHOT | LVS_EX_FULLROWSELECT;
cachedlist = list;
for(i = 0; i < listview_num_columns; i++)
- listview_column_width[i] = ListView_GetStringWidth (list, column_heading[i]) + 15;
+ listview_column_width[i] = ListView_GetStringWidth (list, column_heading[i]) + listpadding;
// If there are no columns, then insert some
lvcolumn.mask = LVCF_WIDTH;
lvstruct.iItem = i;
lvstruct.iSubItem = 0;
result = ListView_InsertItem (list, &lvstruct);
- width = ListView_GetStringWidth (list, lvstruct.pszText) + 15;
+ width = ListView_GetStringWidth (list, lvstruct.pszText) + listpadding;
if (width > listview_column_width[0])
listview_column_width[0] = width;
entry++;
lvstruct.iSubItem = 0;
result = ListView_InsertItem (list, &lvstruct);
ListView_SetItemState (list, i, INDEXTOSTATEIMAGEMASK(type ? 0 : (checked ? 2 : 1)), LVIS_STATEIMAGEMASK);
- width = ListView_GetStringWidth (list, lvstruct.pszText) + 30;
+ width = ListView_GetStringWidth (list, lvstruct.pszText) + listpadding;
if (width > listview_column_width[0])
listview_column_width[0] = width;
entry++;
if (drv >= 0)
_stprintf (tmp, _T("DF%d:"), drv);
ListView_SetItemText (list, result, 2, tmp);
- width = ListView_GetStringWidth (list, lvstruct.pszText) + 15;
+ width = ListView_GetStringWidth (list, lvstruct.pszText) + listpadding;
if (width > listview_column_width[0])
listview_column_width[0] = width;
entry++;
result = ListView_InsertItem (list, &lvstruct);
ListView_SetItemText(list, result, 1, tmp);
ListView_SetItemText(list, result, 2, cds->name);
- width = ListView_GetStringWidth(list, cds->name) + 10;
+ width = ListView_GetStringWidth(list, cds->name) + listpadding;
if (width > listview_column_width[2])
listview_column_width[2] = width;
break;
listview_column_width[0] = 20;
ListView_SetItemText(list, result, 1, devname_str);
- width = ListView_GetStringWidth(list, devname_str) + 10;
+ width = ListView_GetStringWidth(list, devname_str) + listpadding;
if(width > listview_column_width[1])
listview_column_width[1] = width;
ListView_SetItemText(list, result, 2, volname_str);
- width = ListView_GetStringWidth(list, volname_str) + 10;
+ width = ListView_GetStringWidth(list, volname_str) + listpadding;
if(width > listview_column_width[2])
listview_column_width[2] = width;
listview_column_width[3] = 150;
ListView_SetItemText(list, result, 3, rootdirp);
- width = ListView_GetStringWidth(list, rootdirp) + 10;
+ width = ListView_GetStringWidth(list, rootdirp) + listpadding;
if(width > listview_column_width[3])
listview_column_width[3] = width;
ListView_SetItemText(list, result, 4, readwrite_str);
- width = ListView_GetStringWidth(list, readwrite_str) + 10;
+ width = ListView_GetStringWidth(list, readwrite_str) + listpadding;
if(width > listview_column_width[4])
listview_column_width[4] = width;
ListView_SetItemText(list, result, 5, blocksize_str);
- width = ListView_GetStringWidth(list, blocksize_str) + 10;
+ width = ListView_GetStringWidth(list, blocksize_str) + listpadding;
if(width > listview_column_width[5])
listview_column_width[5] = width;
ListView_SetItemText(list, result, 6, size_str);
- width = ListView_GetStringWidth(list, size_str) + 10;
+ width = ListView_GetStringWidth(list, size_str) + listpadding;
if(width > listview_column_width[6])
listview_column_width[6] = width;
ListView_SetItemText(list, result, 7, bootpri_str);
- width = ListView_GetStringWidth(list, bootpri_str) + 10;
+ width = ListView_GetStringWidth(list, bootpri_str) + listpadding;
if(width > listview_column_width[7] )
listview_column_width[7] = width;
}
{
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
if (!configstore) {
DeleteConfigTree (hDlg);
CreateConfigStore (NULL, FALSE);
{
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
pages[PATHS_ID] = hDlg;
setac (hDlg, IDC_PATHS_ROM);
setac (hDlg, IDC_PATHS_CONFIG);
{
case WM_INITDIALOG:
{
+ scaleresource_setfont (hDlg);
int ids[] = { IDC_DF0TEXTQ, IDC_DF1TEXTQ, -1 };
pages[QUICKSTART_ID] = hDlg;
currentpage = QUICKSTART_ID;
switch( msg )
{
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[ABOUT_ID] = hDlg;
currentpage = ABOUT_ID;
init_aboutdlg (hDlg);
switch (msg)
{
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[DISPLAY_ID] = hDlg;
currentpage = DISPLAY_ID;
SendDlgItemMessage (hDlg, IDC_FRAMERATE, TBM_SETPAGESIZE, 0, 1);
switch (msg) {
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[CHIPSET_ID] = hDlg;
currentpage = CHIPSET_ID;
switch (msg) {
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[CHIPSET2_ID] = hDlg;
currentpage = CHIPSET2_ID;
cs_compatible = workprefs.cs_compatible;
setchecked(hDlg, IDC_FASTMEMNOAUTOCONFIG, rb && rb->manual_config);
if (rb) {
if (rb->manual_config) {
- if (rb->end_address <= rb->start_address || rb->start_address + rb->size >= rb->end_address)
+ if (rb->end_address <= rb->start_address || rb->start_address + rb->size < rb->end_address)
rb->end_address = rb->start_address + rb->size - 1;
} else {
rb->start_address = 0;
case WM_INITDIALOG:
{
recursive++;
+ scaleresource_setfont (hDlg);
pages[EXPANSION2_ID] = hDlg;
currentpage = EXPANSION2_ID;
int ids[] = { IDC_SCSIROMFILE, IDC_CPUBOARDROMFILE, -1 };
switch (msg)
{
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[EXPANSION_ID] = hDlg;
currentpage = EXPANSION_ID;
{
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
pages[BOARD_ID] = hDlg;
currentpage = BOARD_ID;
setchecked(hDlg, IDC_AUTOCONFIGCUSTOMSORT, workprefs.autoconfig_custom_sort);
{
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
pages[MEMORY_ID] = hDlg;
currentpage = MEMORY_ID;
SendDlgItemMessage (hDlg, IDC_CHIPMEM, TBM_SETRANGE, TRUE, MAKELONG (MIN_CHIP_MEM, MAX_CHIP_MEM));
{
case WM_INITDIALOG:
{
+ scaleresource_setfont (hDlg);
int ids[] = { IDC_ROMFILE, IDC_ROMFILE2, IDC_CARTFILE, -1 };
pages[KICKSTART_ID] = hDlg;
currentpage = KICKSTART_ID;
switch (msg)
{
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[currentpage] = hDlg;
InitializeListView (hDlg);
values_to_miscdlg (hDlg);
switch (msg) {
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
pages[CPU_ID] = hDlg;
currentpage = CPU_ID;
SendDlgItemMessage (hDlg, IDC_CACHE, TBM_SETRANGE, TRUE, MAKELONG (MIN_CACHE_SIZE, MAX_CACHE_SIZE));
case WM_INITDIALOG:
{
recursive++;
+ scaleresource_setfont (hDlg);
sound_loaddrivesamples ();
SendDlgItemMessage (hDlg, IDC_SOUNDBUFFERRAM, TBM_SETRANGE, TRUE, MAKELONG (MIN_SOUND_MEM, MAX_SOUND_MEM));
SendDlgItemMessage (hDlg, IDC_SOUNDBUFFERRAM, TBM_SETPAGESIZE, 0, 1);
bool disables = !rdb || (rdb && current_hfdlg.ci.controller_type == HD_CONTROLLER_TYPE_UAE);
bool ide = current_hfdlg.ci.controller_type >= HD_CONTROLLER_TYPE_IDE_FIRST && current_hfdlg.ci.controller_type <= HD_CONTROLLER_TYPE_IDE_LAST;
bool scsi = current_hfdlg.ci.controller_type >= HD_CONTROLLER_TYPE_SCSI_FIRST && current_hfdlg.ci.controller_type <= HD_CONTROLLER_TYPE_SCSI_LAST;
+ const struct expansionromtype *ert = get_unit_expansion_rom(current_hfdlg.ci.controller_type);
- if (current_hfdlg.ci.controller_unit >= 8)
- current_hfdlg.ci.unit_feature_level = HD_LEVEL_SASI_CHS;
+ if (ert && current_hfdlg.ci.controller_unit >= 8) {
+ if (!_tcscmp(ert->name, _T("a2091"))) {
+ current_hfdlg.ci.unit_feature_level = HD_LEVEL_SASI_CHS;
+ } else if (!_tcscmp(ert->name, _T("a2090a"))) {
+ current_hfdlg.ci.unit_feature_level = HD_LEVEL_SCSI_1;
+ }
+ }
if (!disables)
current_hfdlg.ci.bootpri = 0;
{
switch (msg) {
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
clicked_entry = 0;
pages[HARDDISK_ID] = hDlg;
currentpage = HARDDISK_ID;
TCHAR ft35dd[20], ft35hd[20], ft35ddpc[20], ft35hdpc[20], ft525sd[20], ftdis[20], ft35ddescom[20];
int df0texts[] = { IDC_DF0TEXT, IDC_DF1TEXT, IDC_DF2TEXT, IDC_DF3TEXT, -1 };
+ scaleresource_setfont (hDlg);
WIN32GUI_LoadUIString (IDS_FLOPPYTYPE35DD, ft35dd, sizeof ft35dd / sizeof (TCHAR));
WIN32GUI_LoadUIString (IDS_FLOPPYTYPE35HD, ft35hd, sizeof ft35hd / sizeof (TCHAR));
WIN32GUI_LoadUIString (IDS_FLOPPYTYPE35DDPC, ft35ddpc, sizeof ft35ddpc / sizeof (TCHAR));
switch (msg)
{
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[DISK_ID] = hDlg;
currentpage = DISK_ID;
InitializeListView (hDlg);
case WM_INITDIALOG:
{
recursive++;
+ scaleresource_setfont (hDlg);
pages[GAMEPORTS_ID] = hDlg;
currentpage = GAMEPORTS_ID;
{
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
pages[IOPORTS_ID] = hDlg;
currentpage = IOPORTS_ID;
init_portsdlg (hDlg);
return TRUE;
case WM_INITDIALOG:
{
+ scaleresource_setfont (hDlg);
inputmap_port_remap = -1;
inputmap_remap_counter = -1;
inputmap_view_offset = 0;
{
case WM_INITDIALOG:
recursive++;
+ scaleresource_setfont (hDlg);
pages[INPUT_ID] = hDlg;
currentpage = INPUT_ID;
inputdevice_updateconfig (NULL, &workprefs);
}
firstinit = true;
}
-
+ scaleresource_setfont (hDlg);
pages[HW3D_ID] = hDlg;
currentpage = HW3D_ID;
SendDlgItemMessage (hDlg, IDC_FILTERASPECT, CB_RESETCONTENT, 0, 0);
switch(msg)
{
case WM_INITDIALOG:
+ scaleresource_setfont (hDlg);
pages[AVIOUTPUT_ID] = hDlg;
currentpage = AVIOUTPUT_ID;
AVIOutput_GetSettings ();
tres = scaleresource (ppage[id].nres, hDlg, -1, 0, 0);
panelDlg = CreateDialogIndirectParam (tres->inst, tres->resource, hDlg, ppage[id].dlgproc, id);
freescaleresource(tres);
- scaleresource_setfont (panelDlg);
GetWindowRect (hDlg, &r3w);
GetClientRect (panelDlg, &r3c);
ALTROMPN(122, 1, 2, 8192, ROMTYPE_EVEN | ROMTYPE_8BIT, _T("315098-01"), 0xbe422e3b,0x64ad1646,0x030db10f,0x54f13f64,0x7d449e4d,0x17f9ab5c)
{ _T("A590/A2091 v4.6"), 4, 6, 4, 6, _T("A590\0A2091\0"), 16384, 202, 0, 0, ROMTYPE_A2091, 0, 0, NULL,
0x00a38212, 0xa029a4de,0x56e5539d,0x0ee00588,0xc2634f13,0x29f06269 },
- ALTROMPN(202, 1, 1, 8192, ROMTYPE_ODD | ROMTYPE_8BIT, _T("390389-03"), 0x26013266,0x60dedda8,0xd406b276,0x2ad1504a,0x88a4d6e2,0x9c0fb10d)
+ ALTROMPN(202, 1, 1, 8192, ROMTYPE_ODD | ROMTYPE_8BIT, _T("390389-02"), 0x26013266,0x60dedda8,0xd406b276,0x2ad1504a,0x88a4d6e2,0x9c0fb10d)
ALTROMPN(202, 1, 2, 8192, ROMTYPE_EVEN | ROMTYPE_8BIT, _T("390388-02"), 0x6c9cb089,0xbd8c6bb7,0x9ae91a4d,0x1b9ee76f,0xdd11aaf9,0x7ca4358b)
{ _T("A590/A2091 v6.0"), 6, 0, 6, 0, _T("A590\0A2091\0"), 16384, 53, 0, 0, ROMTYPE_A2091, 0, 0, NULL,
0x8396cf4e, 0x5E03BC61,0x8C862ABE,0x7BF79723,0xB4EEF4D2,0x1859A0F2 },
ALTROMPN(53, 1, 2, 8192, ROMTYPE_EVEN | ROMTYPE_8BIT, _T("390388-03"), 0x2e77bbff,0x8a098845,0x068f32cf,0xa4d34a27,0x8cd290f6,0x1d35a52c)
{ _T("A590/A2091 v6.1"), 6, 1, 6, 1, _T("A590\0A2091\0"), 16384, 206, 0, 0, ROMTYPE_A2091, 0, 0, NULL,
0xaccf6452, 0xf56061ab,0x37768281,0x94d89729,0x802ee7ae,0x1de9df90 },
- ALTROMPN(206, 1, 1, 8192, ROMTYPE_ODD | ROMTYPE_8BIT, NULL, 0xc460cfdb,0x0de457da,0xec3b84f7,0x5e8fb344,0xdefe24ce,0x56cda3e0)
- ALTROMPN(206, 1, 2, 8192, ROMTYPE_EVEN | ROMTYPE_8BIT, NULL, 0x00dbf615,0x503940d0,0x4fb3b49e,0xaa61100f,0xd3a48701,0x8b35e25a)
+ ALTROMPN(206, 1, 1, 8192, ROMTYPE_ODD | ROMTYPE_8BIT, _T("390722-01"), 0xc460cfdb,0x0de457da,0xec3b84f7,0x5e8fb344,0xdefe24ce,0x56cda3e0)
+ ALTROMPN(206, 1, 2, 8192, ROMTYPE_EVEN | ROMTYPE_8BIT, _T("390721-01"), 0x00dbf615,0x503940d0,0x4fb3b49e,0xaa61100f,0xd3a48701,0x8b35e25a)
{ _T("A590/A2091 v6.6"), 6, 6, 6, 6, _T("A590\0A2091\0"), 16384, 54, 0, 0, ROMTYPE_A2091, 0, 0, NULL,
0x33e00a7a, 0x739BB828,0xE874F064,0x9360F59D,0x26B5ED3F,0xBC99BB66 },
ALTROMPN(54, 1, 1, 8192, ROMTYPE_ODD | ROMTYPE_8BIT, _T("390722-02"), 0xe536bbb2,0xfd7f8a6d,0xa18c1b02,0xd07eb990,0xc2467a24,0x183ede12)