Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9eead124
Commit
9eead124
authored
Mar 21, 2005
by
Matthew Mastracci
Committed by
Alexandre Julliard
Mar 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If a FOURCC surface specifies DDSD_PITCH, use that instead of
dwLinearSize.
parent
3e7c8e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dib.c
dlls/ddraw/dsurface/dib.c
+2
-1
No files found.
dlls/ddraw/dsurface/dib.c
View file @
9eead124
...
...
@@ -255,7 +255,8 @@ HRESULT DIB_DirectDrawSurface_Construct(IDirectDrawSurfaceImpl *This,
This
->
surface_desc
.
dwFlags
|=
DDSD_LPSURFACE
;
if
(
This
->
surface_desc
.
u4
.
ddpfPixelFormat
.
dwFlags
&
DDPF_FOURCC
)
{
/* Ensure that DDSD_PITCH is respected for DDPF_FOURCC surfaces too */
if
(
This
->
surface_desc
.
u4
.
ddpfPixelFormat
.
dwFlags
&
DDPF_FOURCC
&&
!
(
This
->
surface_desc
.
dwFlags
&
DDSD_PITCH
))
{
This
->
surface_desc
.
lpSurface
=
VirtualAlloc
(
NULL
,
This
->
surface_desc
.
u1
.
dwLinearSize
,
MEM_COMMIT
,
PAGE_READWRITE
);
This
->
surface_desc
.
dwFlags
|=
DDSD_LINEARSIZE
;
...
...
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