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
329d017d
Commit
329d017d
authored
Sep 21, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Sep 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start to implement TestCooperativeLevel.
parent
5173234e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
device.c
dlls/wined3d/device.c
+21
-2
directx.c
dlls/wined3d/directx.c
+10
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-0
No files found.
dlls/wined3d/device.c
View file @
329d017d
...
...
@@ -5844,8 +5844,27 @@ BOOL WINAPI IWineD3DDeviceImpl_ShowCursor(IWineD3DDevice* iface, BOOL bShow
HRESULT
WINAPI
IWineD3DDeviceImpl_TestCooperativeLevel
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
/* No way of notifying yet! */
return
D3D_OK
;
TRACE
(
"(%p) : state (%lu)
\n
"
,
This
,
This
->
state
);
/* TODO: Implement wrapping of the WndProc so that mimimize and maxamise can be monitored and the states adjusted. */
switch
(
This
->
state
)
{
case
D3D_OK
:
return
D3D_OK
;
case
D3DERR_DEVICELOST
:
{
ResourceList
*
resourceList
=
This
->
resources
;
while
(
NULL
!=
resourceList
)
{
if
(((
IWineD3DResourceImpl
*
)
resourceList
->
resource
)
->
resource
.
pool
==
D3DPOOL_DEFAULT
/* TODO: IWineD3DResource_GetPool(resourceList->resource)*/
)
return
D3DERR_DEVICENOTRESET
;
resourceList
=
resourceList
->
next
;
}
return
D3DERR_DEVICELOST
;
}
case
D3DERR_DRIVERINTERNALERROR
:
return
D3DERR_DRIVERINTERNALERROR
;
}
/* Unknown state */
return
D3DERR_DRIVERINTERNALERROR
;
}
...
...
dlls/wined3d/directx.c
View file @
329d017d
...
...
@@ -1639,6 +1639,9 @@ HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter, D3DDEV
IWineD3D_AddRef
(
object
->
wineD3D
);
object
->
parent
=
parent
;
/* Set the state up as invalid until the device is fully created */
object
->
state
=
D3DERR_DRIVERINTERNALERROR
;
TRACE
(
"(%p)->(Adptr:%d, DevType: %x, FocusHwnd: %p, BehFlags: %lx, PresParms: %p, RetDevInt: %p)
\n
"
,
This
,
Adapter
,
DeviceType
,
hFocusWindow
,
BehaviourFlags
,
pPresentationParameters
,
ppReturnedDeviceInterface
);
TRACE
(
"(%p)->(DepthStencil:(%u,%s), BackBufferFormat:(%u,%s))
\n
"
,
This
,
...
...
@@ -1736,8 +1739,15 @@ HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter, D3DDEV
}
/* set the state of the device to valid */
object
->
state
=
D3D_OK
;
return
D3D_OK
;
create_device_error:
/* Set the device state to error */
object
->
state
=
D3DERR_DRIVERINTERNALERROR
;
if
(
object
->
updateStateBlock
!=
NULL
)
{
IWineD3DStateBlock_Release
((
IWineD3DStateBlock
*
)
object
->
updateStateBlock
);
object
->
updateStateBlock
=
NULL
;
...
...
dlls/wined3d/wined3d_private.h
View file @
329d017d
...
...
@@ -536,6 +536,9 @@ typedef struct IWineD3DDeviceImpl
/* Debug stream management */
BOOL
debug
;
/* Device state management */
HRESULT
state
;
/* Screen buffer resources */
glContext
contextCache
[
CONTEXT_CACHE
];
...
...
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