Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9af30c79
Commit
9af30c79
authored
Feb 24, 2008
by
Steven Edwards
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Up the default desktop resolution to 800x600.
parent
84cf9caa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+5
-5
No files found.
programs/winecfg/x11drvdlg.c
View file @
9af30c79
...
...
@@ -78,7 +78,7 @@ static void update_gui_for_desktop_mode(HWND dialog) {
char
*
buf
,
*
bufindex
;
CheckDlgButton
(
dialog
,
IDC_ENABLE_DESKTOP
,
BST_CHECKED
);
buf
=
get_reg_key
(
config_key
,
keypath
(
"X11 Driver"
),
"Desktop"
,
"
640x48
0"
);
buf
=
get_reg_key
(
config_key
,
keypath
(
"X11 Driver"
),
"Desktop"
,
"
800x60
0"
);
/* note: this test must match the one in x11drv */
if
(
buf
[
0
]
!=
'n'
&&
buf
[
0
]
!=
'N'
&&
buf
[
0
]
!=
'F'
&&
buf
[
0
]
!=
'f'
&&
buf
[
0
]
!=
'0'
)
{
...
...
@@ -96,8 +96,8 @@ static void update_gui_for_desktop_mode(HWND dialog) {
SetWindowText
(
GetDlgItem
(
dialog
,
IDC_DESKTOP_HEIGHT
),
bufindex
);
}
else
{
WINE_TRACE
(
"Desktop registry entry is malformed
\n
"
);
SetWindowText
(
GetDlgItem
(
dialog
,
IDC_DESKTOP_WIDTH
),
"
64
0"
);
SetWindowText
(
GetDlgItem
(
dialog
,
IDC_DESKTOP_HEIGHT
),
"
48
0"
);
SetWindowText
(
GetDlgItem
(
dialog
,
IDC_DESKTOP_WIDTH
),
"
80
0"
);
SetWindowText
(
GetDlgItem
(
dialog
,
IDC_DESKTOP_HEIGHT
),
"
60
0"
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
...
...
@@ -183,12 +183,12 @@ static void set_from_desktop_edits(HWND dialog) {
if
(
width
==
NULL
||
strcmp
(
width
,
""
)
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
width
);
width
=
strdupA
(
"
64
0"
);
width
=
strdupA
(
"
80
0"
);
}
if
(
height
==
NULL
||
strcmp
(
height
,
""
)
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
height
);
height
=
strdupA
(
"
48
0"
);
height
=
strdupA
(
"
60
0"
);
}
new
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
width
)
+
strlen
(
height
)
+
2
/* x + terminator */
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment