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
990c1410
Commit
990c1410
authored
Dec 28, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't touch the window's focus or wndproc for windowed devices.
parent
381fa893
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
device.c
dlls/wined3d/device.c
+11
-8
No files found.
dlls/wined3d/device.c
View file @
990c1410
...
@@ -1383,12 +1383,15 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
...
@@ -1383,12 +1383,15 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
if
(
This
->
d3d_initialized
)
return
WINED3DERR_INVALIDCALL
;
if
(
This
->
d3d_initialized
)
return
WINED3DERR_INVALIDCALL
;
if
(
!
This
->
adapter
->
opengl
)
return
WINED3DERR_INVALIDCALL
;
if
(
!
This
->
adapter
->
opengl
)
return
WINED3DERR_INVALIDCALL
;
This
->
focus_window
=
This
->
createParms
.
hFocusWindow
;
if
(
!
pPresentationParameters
->
Windowed
)
if
(
!
This
->
focus_window
)
This
->
focus_window
=
pPresentationParameters
->
hDeviceWindow
;
if
(
!
wined3d_register_window
(
This
->
focus_window
,
This
))
{
{
ERR
(
"Failed to register window %p.
\n
"
,
This
->
focus_window
);
This
->
focus_window
=
This
->
createParms
.
hFocusWindow
;
return
E_FAIL
;
if
(
!
This
->
focus_window
)
This
->
focus_window
=
pPresentationParameters
->
hDeviceWindow
;
if
(
!
wined3d_register_window
(
This
->
focus_window
,
This
))
{
ERR
(
"Failed to register window %p.
\n
"
,
This
->
focus_window
);
return
E_FAIL
;
}
}
}
TRACE
(
"(%p) : Creating stateblock
\n
"
,
This
);
TRACE
(
"(%p) : Creating stateblock
\n
"
,
This
);
...
@@ -1444,7 +1447,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
...
@@ -1444,7 +1447,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
}
}
}
}
SetFocus
(
This
->
focus_window
);
if
(
This
->
focus_window
)
SetFocus
(
This
->
focus_window
);
/* Setup the implicit swapchain. This also initializes a context. */
/* Setup the implicit swapchain. This also initializes a context. */
TRACE
(
"Creating implicit swapchain
\n
"
);
TRACE
(
"Creating implicit swapchain
\n
"
);
...
@@ -1580,7 +1583,7 @@ err_out:
...
@@ -1580,7 +1583,7 @@ err_out:
if
(
This
->
shader_priv
)
{
if
(
This
->
shader_priv
)
{
This
->
shader_backend
->
shader_free_private
(
iface
);
This
->
shader_backend
->
shader_free_private
(
iface
);
}
}
wined3d_unregister_window
(
This
->
focus_window
);
if
(
This
->
focus_window
)
wined3d_unregister_window
(
This
->
focus_window
);
return
hr
;
return
hr
;
}
}
...
@@ -1771,7 +1774,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface,
...
@@ -1771,7 +1774,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface,
This
->
d3d_initialized
=
FALSE
;
This
->
d3d_initialized
=
FALSE
;
wined3d_unregister_window
(
This
->
focus_window
);
if
(
This
->
focus_window
)
wined3d_unregister_window
(
This
->
focus_window
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
...
...
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