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
34e74ffc
Commit
34e74ffc
authored
Feb 14, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use WINED3D_OK rather than D3D_OK.
parent
3e77ffc5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
device.c
dlls/wined3d/device.c
+4
-4
surface_gdi.c
dlls/wined3d/surface_gdi.c
+5
-5
vertexbuffer.c
dlls/wined3d/vertexbuffer.c
+1
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+1
-1
No files found.
dlls/wined3d/device.c
View file @
34e74ffc
...
...
@@ -1667,7 +1667,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
/* Setup the implicit swapchain */
TRACE
(
"Creating implicit swapchain
\n
"
);
if
(
D3D_OK
!=
D3DCB_CreateAdditionalSwapChain
((
IUnknown
*
)
This
->
parent
,
pPresentationParameters
,
(
IWineD3DSwapChain
**
)
&
swapchain
)
||
swapchain
==
NULL
)
{
if
(
FAILED
(
D3DCB_CreateAdditionalSwapChain
((
IUnknown
*
)
This
->
parent
,
pPresentationParameters
,
(
IWineD3DSwapChain
**
)
&
swapchain
))
||
!
swapchain
)
{
WARN
(
"Failed to create implicit swapchain
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -1845,10 +1845,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_EnumDisplayModes(IWineD3DDevice *iface,
TRACE
(
"Enumerating %dx%d@%s
\n
"
,
DevModeW
.
dmPelsWidth
,
DevModeW
.
dmPelsHeight
,
debug_d3dformat
(
pixelformat_for_depth
(
DevModeW
.
dmBitsPerPel
)));
if
(
callback
((
IUnknown
*
)
This
,
(
UINT
)
DevModeW
.
dmPelsWidth
,
(
UINT
)
DevModeW
.
dmPelsHeight
,
pixelformat_for_depth
(
DevModeW
.
dmBitsPerPel
),
60
.
0
,
context
)
==
DDENUMRET_CANCEL
)
return
D3D_OK
;
return
WINE
D3D_OK
;
}
return
D3D_OK
;
return
WINE
D3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DDISPLAYMODE
*
pMode
)
{
...
...
@@ -1882,7 +1882,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, U
(
This
->
ddraw_height
==
pMode
->
Height
)
&&
(
This
->
ddraw_format
==
pMode
->
Format
)
&&
(
pMode
->
RefreshRate
==
0
)
)
{
return
D3D_OK
;
return
WINE
D3D_OK
;
}
ret
=
ChangeDisplaySettingsExW
(
NULL
,
&
devmode
,
NULL
,
CDS_FULLSCREEN
,
NULL
);
...
...
dlls/wined3d/surface_gdi.c
View file @
34e74ffc
...
...
@@ -243,7 +243,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface,
TRACE
(
"returning memory@%p, pitch(%d)
\n
"
,
pLockedRect
->
pBits
,
pLockedRect
->
Pitch
);
This
->
Flags
|=
SFLAG_LOCKED
;
return
D3D_OK
;
return
WINE
D3D_OK
;
}
/*****************************************************************************
...
...
@@ -1206,7 +1206,7 @@ IWineGDISurfaceImpl_BltFast(IWineD3DSurface *iface,
/* Lock the union of the two rectangles */
ret
=
IWineD3DSurface_LockRect
(
iface
,
&
dlock
,
&
lock_union
,
0
);
if
(
ret
!=
D3D_OK
)
goto
error
;
if
(
ret
!=
WINE
D3D_OK
)
goto
error
;
pitch
=
dlock
.
Pitch
;
slock
.
Pitch
=
dlock
.
Pitch
;
...
...
@@ -1221,9 +1221,9 @@ IWineGDISurfaceImpl_BltFast(IWineD3DSurface *iface,
else
{
ret
=
IWineD3DSurface_LockRect
(
Source
,
&
slock
,
&
lock_src
,
WINED3DLOCK_READONLY
);
if
(
ret
!=
D3D_OK
)
goto
error
;
if
(
ret
!=
WINE
D3D_OK
)
goto
error
;
ret
=
IWineD3DSurface_LockRect
(
iface
,
&
dlock
,
&
lock_dst
,
0
);
if
(
ret
!=
D3D_OK
)
goto
error
;
if
(
ret
!=
WINE
D3D_OK
)
goto
error
;
sbuf
=
slock
.
pBits
;
dbuf
=
dlock
.
pBits
;
...
...
@@ -1497,7 +1497,7 @@ const char* filename)
* avoid confusion in the shared surface code.
*
* Returns:
* D3D_OK on success
*
WINE
D3D_OK on success
* The return values of called methods on failure
*
*****************************************************************************/
...
...
dlls/wined3d/vertexbuffer.c
View file @
34e74ffc
...
...
@@ -433,7 +433,7 @@ HRESULT WINAPI IWineD3DVertexBufferImpl_Unlock(IWineD3DVertexBuffer *iface) {
if
(
lockcount
>
0
)
{
/* Delay loading the buffer until everything is unlocked */
TRACE
(
"Ignoring the unlock
\n
"
);
return
D3D_OK
;
return
WINE
D3D_OK
;
}
if
(
This
->
Flags
&
VBFLAG_HASDESC
)
{
...
...
dlls/wined3d/vertexshader.c
View file @
34e74ffc
...
...
@@ -1244,7 +1244,7 @@ static HRESULT WINAPI IWIneD3DVertexShaderImpl_SetLocalConstantsF(IWineD3DVertex
list_add_head
(
&
This
->
baseShader
.
constantsF
,
&
lconst
->
entry
);
}
return
D3D_OK
;
return
WINE
D3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DVertexShaderImpl_CompileShader
(
IWineD3DVertexShader
*
iface
)
{
...
...
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