PUSHBUTTON "Cancel",IDCANCEL,201,57,48,15\r
END\r
\r
-IDD_CHIPSET DIALOGEX 0, 0, 302, 172\r
+IDD_CHIPSET DIALOGEX 0, 0, 396, 169\r
STYLE DS_LOCALEDIT | DS_SETFONT | DS_3DLOOK | DS_CONTROL | WS_CHILD\r
FONT 8, "MS Sans Serif", 0, 0, 0x0\r
BEGIN\r
- GROUPBOX "Chipset",IDC_STATIC,1,0,160,111\r
+ GROUPBOX "Chipset",IDC_STATIC,1,0,212,111\r
CONTROL "OCS [] Original chipset. A1000 and most A500s.",IDC_OCS,\r
- "Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,9,15,73,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,14,15,88,10\r
CONTROL "ECS Agnus [] Enhanced chipset (ECS Agnus chip only). CDTV and later A500 and A2000 hardware revisions.",IDC_ECS_AGNUS,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,9,31,73,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,14,31,88,10\r
CONTROL "Full ECS [] Full ECS chipset (ECS Agnus and ECS Denise chips). A500+, A600 and A3000.",IDC_ECS,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,9,47,73,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,14,47,88,10\r
CONTROL "AGA [] Advanced Graphics Architecture chipset. A1200, A4000 and CD32.",IDC_AGA,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,86,15,72,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,114,15,86,10\r
CONTROL "ECS Denise [] Enhanced chipset (ECS Denise chip only). Normally paired with ECS Agnus.",IDC_ECS_DENISE,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,86,31,72,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,114,31,86,10\r
CONTROL "NTSC [] North American and Japanese display standard, 60Hz refresh rate. Other countries use PAL (50Hz. display refresh rate)",IDC_NTSC,\r
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,86,47,72,10\r
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,114,47,86,10\r
CONTROL "Cycle-exact [] The most compatible A500/A1200 emulation mode. Very fast PC recommended.",IDC_CYCLEEXACT,\r
- "Button",BS_AUTOCHECKBOX | BS_LEFT | WS_GROUP | WS_TABSTOP,9,69,139,10\r
- RTEXT "Chipset Extra",IDC_STATIC,11,89,71,15,SS_CENTERIMAGE\r
- COMBOBOX IDC_CS_EXT,86,90,49,65,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP\r
- GROUPBOX "Options",IDC_STATIC,167,0,133,111\r
+ "Button",BS_AUTOCHECKBOX | BS_LEFT | WS_GROUP | WS_TABSTOP,25,69,170,10\r
+ RTEXT "Chipset Extra",IDC_STATIC,30,89,71,15,SS_CENTERIMAGE\r
+ COMBOBOX IDC_CS_EXT,105,90,49,65,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP\r
+ GROUPBOX "Options",IDC_STATIC,221,0,173,111\r
CONTROL "Immediate Blitter [] Faster but less compatible blitter emulation.",IDC_BLITIMM,\r
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,180,16,116,10\r
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,234,16,150,10\r
CONTROL "Wait for Blitter [] Compatibility hack for programs that don't wait for the blitter correctly, causing graphics corruption if CPU is too fast.",IDC_BLITWAIT,\r
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,180,29,116,10\r
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,234,29,150,10\r
CONTROL "Genlock connected [] Allow boot sequence to detect genlock. Genlock is not emulated.",IDC_GENLOCK,\r
- "Button",BS_AUTOCHECKBOX | BS_LEFT | WS_GROUP | WS_TABSTOP,180,42,116,10\r
- CTEXT "External display hardware:",IDC_STATIC,174,59,117,15,SS_CENTERIMAGE\r
- COMBOBOX IDC_MONITOREMU,184,78,98,65,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP\r
- GROUPBOX "Collision Level",IDC_STATIC,1,116,299,48\r
+ "Button",BS_AUTOCHECKBOX | BS_LEFT | WS_GROUP | WS_TABSTOP,234,42,150,10\r
+ CTEXT "External display hardware:",IDC_STATIC,228,59,117,15,SS_CENTERIMAGE\r
+ COMBOBOX IDC_MONITOREMU,238,78,98,65,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP\r
+ GROUPBOX "Collision Level",IDC_STATIC,1,116,393,48\r
CONTROL "None [] Collision hardware emulation disabled.",IDC_COLLISION0,\r
- "Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,9,132,101,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,47,132,101,10\r
CONTROL "Sprites only [] Emulate only sprite vs. sprite collisions.",IDC_COLLISION1,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,9,147,101,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,47,147,101,10\r
CONTROL "Sprites and Sprites vs. Playfield [] Recommended collision emulation level.",IDC_COLLISION2,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,115,132,181,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,182,132,181,10\r
CONTROL "Full [] 100% collision hardware emulation. Only very few games need this option. Slowest.",IDC_COLLISION3,\r
- "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,115,147,181,10\r
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,182,147,181,10\r
END\r
\r
IDD_CHIPSET2 DIALOGEX 0, 0, 396, 288\r
\r
IDD_CHIPSET, DIALOG\r
BEGIN\r
- BOTTOMMARGIN, 162\r
END\r
\r
IDD_CHIPSET2, DIALOG\r
int dxfs = currentmode->flags & (DM_DX_FULLSCREEN);
int d3dfs = currentmode->flags & (DM_D3D_FULLSCREEN);
int fsw = currentmode->flags & (DM_W_FULLSCREEN);
- DWORD exstyle = currprefs.win32_notaskbarbutton ? WS_EX_TOOLWINDOW : WS_EX_APPWINDOW;
+ DWORD exstyle = (currprefs.win32_notaskbarbutton ? WS_EX_TOOLWINDOW : WS_EX_APPWINDOW) | 0;
DWORD flags = 0;
int borderless = currprefs.win32_borderless;
- DWORD style = NORMAL_WINDOW_STYLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
- int cymenu = currprefs.win32_statusbar == 0 ? 0 : GetSystemMetrics (SM_CYMENU);
- int cyborder = GetSystemMetrics (SM_CYBORDER);
- int cxborder = GetSystemMetrics (SM_CXBORDER);
- int gap = 3;
+ DWORD style = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
+ int sbheight = currprefs.win32_statusbar == 0 ? 0 : GetSystemMetrics (SM_CYMENU) + 3;
+ int cyborder = GetSystemMetrics (SM_CYFRAME);
+ int gap = 0;
int x, y, w, h;
struct MultiDisplay *md = getdisplay (&currprefs);
y = r.top;
SetWindowPos (hMainWnd, HWND_TOP, x, y, w + window_extra_width, h + window_extra_height,
SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING | SWP_NOZORDER);
- x = gap - 1;
- y = gap - 2;
+ x = gap;
+ y = gap;
}
SetWindowPos (hAmigaWnd, HWND_TOP, x, y, w, h,
SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING | SWP_NOZORDER);
window_led_drives = 0;
window_led_drives_end = 0;
hMainWnd = NULL;
- x = 2; y = 2;
+ x = 0; y = 0;
if (borderless)
- cymenu = cyborder = cxborder = 0;
+ sbheight = cyborder = 0;
if (!dxfs && !d3dfs) {
RECT rc;
- int stored_x = 1, stored_y = cymenu + cyborder;
+ int stored_x = 1, stored_y = sbheight + cyborder;
int oldx, oldy;
int first = 2;
first--;
if (stored_x < GetSystemMetrics (SM_XVIRTUALSCREEN))
stored_x = GetSystemMetrics (SM_XVIRTUALSCREEN);
- if (stored_y < GetSystemMetrics (SM_YVIRTUALSCREEN) + cymenu + cyborder)
- stored_y = GetSystemMetrics (SM_YVIRTUALSCREEN) + cymenu + cyborder;
+ if (stored_y < GetSystemMetrics (SM_YVIRTUALSCREEN) + sbheight + cyborder)
+ stored_y = GetSystemMetrics (SM_YVIRTUALSCREEN) + sbheight + cyborder;
if (stored_x > GetSystemMetrics (SM_CXVIRTUALSCREEN))
rc.left = 1;
else
rc.top = stored_y;
- rc.right = rc.left + gap + currentmode->current_width + gap - 2;
- rc.bottom = rc.top + gap + currentmode->current_height + gap + cymenu - 1 - 2;
+ rc.right = rc.left + gap + currentmode->current_width + gap;
+ rc.bottom = rc.top + gap + currentmode->current_height + gap + sbheight;
oldx = rc.left;
oldy = rc.top;
_T("PCsuxRox"), _T("WinUAE"),
style,
rc.left, rc.top,
- rc.right - rc.left + 1, rc.bottom - rc.top + 1,
+ rc.right - rc.left, rc.bottom - rc.top,
NULL, NULL, hInst, NULL);
if (!hMainWnd) {
write_log (_T("main window creation failed\n"));
close_hwnds ();
return 0;
}
- if (hMainWnd == NULL)
+ if (hMainWnd == NULL) {
hMainWnd = hAmigaWnd;
+ }
+
GetWindowRect (hAmigaWnd, &amigawin_rect);
GetWindowRect (hMainWnd, &mainwin_rect);
if (dxfs || d3dfs)
SetCursorPos (x + w / 2, y + h / 2);
addnotifications (hAmigaWnd, FALSE, FALSE);
createblankwindows ();
+
if (hMainWnd != hAmigaWnd) {
if (!currprefs.headless && !rp_isactive ())
ShowWindow (hMainWnd, firstwindow ? (currprefs.win32_start_minimized ? SW_SHOWMINIMIZED : SW_SHOWDEFAULT) : SW_SHOWNORMAL);