winecfg: Up the default desktop resolution to 800x600.
This commit is contained in:
parent
84cf9caa75
commit
9af30c7987
|
@ -78,7 +78,7 @@ static void update_gui_for_desktop_mode(HWND dialog) {
|
||||||
char* buf, *bufindex;
|
char* buf, *bufindex;
|
||||||
CheckDlgButton(dialog, IDC_ENABLE_DESKTOP, BST_CHECKED);
|
CheckDlgButton(dialog, IDC_ENABLE_DESKTOP, BST_CHECKED);
|
||||||
|
|
||||||
buf = get_reg_key(config_key, keypath("X11 Driver"), "Desktop", "640x480");
|
buf = get_reg_key(config_key, keypath("X11 Driver"), "Desktop", "800x600");
|
||||||
/* note: this test must match the one in x11drv */
|
/* note: this test must match the one in x11drv */
|
||||||
if( buf[0] != 'n' && buf[0] != 'N' && buf[0] != 'F' && buf[0] != 'f'
|
if( buf[0] != 'n' && buf[0] != 'N' && buf[0] != 'F' && buf[0] != 'f'
|
||||||
&& buf[0] != '0') {
|
&& buf[0] != '0') {
|
||||||
|
@ -96,8 +96,8 @@ static void update_gui_for_desktop_mode(HWND dialog) {
|
||||||
SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), bufindex);
|
SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), bufindex);
|
||||||
} else {
|
} else {
|
||||||
WINE_TRACE("Desktop registry entry is malformed\n");
|
WINE_TRACE("Desktop registry entry is malformed\n");
|
||||||
SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), "640");
|
SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), "800");
|
||||||
SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), "480");
|
SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), "600");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, buf);
|
HeapFree(GetProcessHeap(), 0, buf);
|
||||||
|
@ -183,12 +183,12 @@ static void set_from_desktop_edits(HWND dialog) {
|
||||||
|
|
||||||
if (width == NULL || strcmp(width, "") == 0) {
|
if (width == NULL || strcmp(width, "") == 0) {
|
||||||
HeapFree(GetProcessHeap(), 0, width);
|
HeapFree(GetProcessHeap(), 0, width);
|
||||||
width = strdupA("640");
|
width = strdupA("800");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (height == NULL || strcmp(height, "") == 0) {
|
if (height == NULL || strcmp(height, "") == 0) {
|
||||||
HeapFree(GetProcessHeap(), 0, height);
|
HeapFree(GetProcessHeap(), 0, height);
|
||||||
height = strdupA("480");
|
height = strdupA("600");
|
||||||
}
|
}
|
||||||
|
|
||||||
new = HeapAlloc(GetProcessHeap(), 0, strlen(width) + strlen(height) + 2 /* x + terminator */);
|
new = HeapAlloc(GetProcessHeap(), 0, strlen(width) + strlen(height) + 2 /* x + terminator */);
|
||||||
|
|
Loading…
Reference in New Issue