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
be1aa202
Commit
be1aa202
authored
Aug 23, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Don't allow virtual desktops smaller than 640x480.
parent
d57f3886
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+12
-0
No files found.
programs/winecfg/x11drvdlg.c
View file @
be1aa202
...
...
@@ -189,6 +189,8 @@ static void set_from_desktop_edits(HWND dialog)
static
const
WCHAR
x
[]
=
{
'x'
,
0
};
static
const
WCHAR
def_width
[]
=
{
'8'
,
'0'
,
'0'
,
0
};
static
const
WCHAR
def_height
[]
=
{
'6'
,
'0'
,
'0'
,
0
};
static
const
WCHAR
min_width
[]
=
{
'6'
,
'4'
,
'0'
,
0
};
static
const
WCHAR
min_height
[]
=
{
'4'
,
'8'
,
'0'
,
0
};
WCHAR
*
width
,
*
height
,
*
new
;
const
WCHAR
*
desktop_name
=
current_app
?
current_app
:
defaultW
;
...
...
@@ -203,10 +205,20 @@ static void set_from_desktop_edits(HWND dialog)
HeapFree
(
GetProcessHeap
(),
0
,
width
);
width
=
strdupW
(
def_width
);
}
else
if
(
atoiW
(
width
)
<
atoiW
(
min_width
))
{
HeapFree
(
GetProcessHeap
(),
0
,
width
);
width
=
strdupW
(
min_width
);
}
if
(
!
height
||
!
height
[
0
])
{
HeapFree
(
GetProcessHeap
(),
0
,
height
);
height
=
strdupW
(
def_height
);
}
else
if
(
atoiW
(
height
)
<
atoiW
(
min_height
))
{
HeapFree
(
GetProcessHeap
(),
0
,
height
);
height
=
strdupW
(
min_height
);
}
new
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
width
)
+
strlenW
(
height
)
+
2
)
*
sizeof
(
WCHAR
));
strcpyW
(
new
,
width
);
...
...
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