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
10db40ce
Commit
10db40ce
authored
Mar 04, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Don't overwrite the caller specified pitch in ddraw_surface_init().
parent
162bc8db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
surface.c
dlls/ddraw/surface.c
+3
-3
No files found.
dlls/ddraw/surface.c
View file @
10db40ce
...
...
@@ -6059,10 +6059,10 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, s
else
surface
->
surface_desc
.
u1
.
dwLinearSize
=
max
(
4
,
desc
->
dwWidth
)
*
max
(
4
,
desc
->
dwHeight
);
}
else
else
if
(
!
(
desc
->
dwFlags
&
DDSD_LPSURFACE
))
{
surface
->
surface_desc
.
dwFlags
|=
DDSD_PITCH
;
surface
->
surface_desc
.
u1
.
lPitch
=
wined3d_surface_get_pitch
(
wined3d_surface
);
desc
->
dwFlags
|=
DDSD_PITCH
;
desc
->
u1
.
lPitch
=
wined3d_surface_get_pitch
(
wined3d_surface
);
}
if
(
desc
->
dwFlags
&
DDSD_LPSURFACE
)
...
...
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