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
a9f96909
Commit
a9f96909
authored
Jan 27, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Convert VB lock flags to wined3d flags.
parent
f0266ee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
vertexbuffer.c
dlls/ddraw/vertexbuffer.c
+10
-1
No files found.
dlls/ddraw/vertexbuffer.c
View file @
a9f96909
...
@@ -236,8 +236,17 @@ IDirect3DVertexBufferImpl_Lock(IDirect3DVertexBuffer7 *iface,
...
@@ -236,8 +236,17 @@ IDirect3DVertexBufferImpl_Lock(IDirect3DVertexBuffer7 *iface,
IDirect3DVertexBufferImpl
*
This
=
(
IDirect3DVertexBufferImpl
*
)
iface
;
IDirect3DVertexBufferImpl
*
This
=
(
IDirect3DVertexBufferImpl
*
)
iface
;
WINED3DBUFFER_DESC
Desc
;
WINED3DBUFFER_DESC
Desc
;
HRESULT
hr
;
HRESULT
hr
;
DWORD
wined3d_flags
=
0
;
TRACE
(
"(%p)->(%08x,%p,%p)
\n
"
,
This
,
Flags
,
Data
,
Size
);
TRACE
(
"(%p)->(%08x,%p,%p)
\n
"
,
This
,
Flags
,
Data
,
Size
);
/* Writeonly: Pointless. Event: Unsupported by native according to the sdk
* nosyslock: Not applicable
*/
if
(
!
(
Flags
&
DDLOCK_WAIT
))
wined3d_flags
|=
WINED3DLOCK_DONOTWAIT
;
if
(
Flags
&
DDLOCK_READONLY
)
wined3d_flags
|=
WINED3DLOCK_READONLY
;
if
(
Flags
&
DDLOCK_NOOVERWRITE
)
wined3d_flags
|=
WINED3DLOCK_NOOVERWRITE
;
if
(
Flags
&
DDLOCK_DISCARDCONTENTS
)
wined3d_flags
|=
WINED3DLOCK_DISCARD
;
EnterCriticalSection
(
&
ddraw_cs
);
EnterCriticalSection
(
&
ddraw_cs
);
if
(
Size
)
if
(
Size
)
{
{
...
@@ -253,7 +262,7 @@ IDirect3DVertexBufferImpl_Lock(IDirect3DVertexBuffer7 *iface,
...
@@ -253,7 +262,7 @@ IDirect3DVertexBufferImpl_Lock(IDirect3DVertexBuffer7 *iface,
}
}
hr
=
IWineD3DBuffer_Map
(
This
->
wineD3DVertexBuffer
,
0
/* OffsetToLock */
,
hr
=
IWineD3DBuffer_Map
(
This
->
wineD3DVertexBuffer
,
0
/* OffsetToLock */
,
0
/* SizeToLock, 0 == Full lock */
,
(
BYTE
**
)
Data
,
F
lags
);
0
/* SizeToLock, 0 == Full lock */
,
(
BYTE
**
)
Data
,
wined3d_f
lags
);
LeaveCriticalSection
(
&
ddraw_cs
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
hr
;
return
hr
;
}
}
...
...
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