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
c1c3cc2a
Commit
c1c3cc2a
authored
Jan 30, 2006
by
Jan Zerebecki
Committed by
Alexandre Julliard
Jan 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: CreateDevice should use the root of the current window.
parent
b970b220
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
directx.c
dlls/d3d8/directx.c
+5
-1
No files found.
dlls/d3d8/directx.c
View file @
c1c3cc2a
...
@@ -713,8 +713,12 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
...
@@ -713,8 +713,12 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
if
(
!
whichHWND
)
{
if
(
!
whichHWND
)
{
whichHWND
=
hFocusWindow
;
whichHWND
=
hFocusWindow
;
}
}
whichHWND
=
GetAncestor
(
whichHWND
,
GA_ROOT
);
if
(
!
(
object
->
win
=
(
Window
)
GetPropA
(
whichHWND
,
"__wine_x11_whole_window"
)
)
)
{
ERR
(
"Can't get drawable (window), HWND:%p doesn't have the property __wine_x11_whole_window
\n
"
,
whichHWND
);
return
D3DERR_NOTAVAILABLE
;
}
object
->
win_handle
=
whichHWND
;
object
->
win_handle
=
whichHWND
;
object
->
win
=
(
Window
)
GetPropA
(
whichHWND
,
"__wine_x11_whole_window"
);
hDc
=
GetDC
(
whichHWND
);
hDc
=
GetDC
(
whichHWND
);
object
->
display
=
get_display
(
hDc
);
object
->
display
=
get_display
(
hDc
);
...
...
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