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
1e19fe32
Commit
1e19fe32
authored
Oct 25, 2000
by
William Waghorn
Committed by
Alexandre Julliard
Oct 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xf86vmode_setdisplaymode() wasn't properly saving the 'private' field
of the XF86VidModeModeLine structure.
parent
9a58351f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
x11.c
dlls/ddraw/ddraw/x11.c
+10
-2
No files found.
dlls/ddraw/ddraw/x11.c
View file @
1e19fe32
...
...
@@ -170,7 +170,13 @@ xf86vmode_setdisplaymode(width,height) {
orig_mode
->
vsyncend
=
mod_tmp
.
vsyncend
;
orig_mode
->
vtotal
=
mod_tmp
.
vtotal
;
orig_mode
->
flags
=
mod_tmp
.
flags
;
orig_mode
->
private
=
mod_tmp
.
private
;
/* copy private data to our orig_mode structure */
orig_mode
->
privsize
=
mod_tmp
.
privsize
;
if
(
orig_mode
->
privsize
)
{
orig_mode
->
private
=
malloc
(
mod_tmp
.
privsize
);
memcpy
(
orig_mode
->
private
,
mod_tmp
.
private
,
mod_tmp
.
privsize
);
}
TSXF86VidModeGetAllModeLines
(
display
,
DefaultScreen
(
display
),
&
mode_count
,
&
all_modes
);
for
(
i
=
0
;
i
<
mode_count
;
i
++
)
{
...
...
@@ -202,8 +208,10 @@ void xf86vmode_restore() {
if
(
!
orig_mode
)
return
;
TSXF86VidModeSwitchToMode
(
display
,
DefaultScreen
(
display
),
orig_mode
);
/* manually free the private data if it was allocated */
if
(
orig_mode
->
privsize
)
TSXFree
(
orig_mode
->
private
);
free
(
orig_mode
->
private
);
free
(
orig_mode
);
orig_mode
=
NULL
;
}
...
...
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