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
25c07dc8
Commit
25c07dc8
authored
Aug 04, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the ddraw_window device member.
parent
376944eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
23 deletions
+19
-23
device.c
dlls/wined3d/device.c
+16
-19
surface.c
dlls/wined3d/surface.c
+2
-2
swapchain_gdi.c
dlls/wined3d/swapchain_gdi.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
25c07dc8
...
...
@@ -1432,13 +1432,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
if
(
!
object
->
win_handle
)
{
object
->
win_handle
=
This
->
createParms
.
hFocusWindow
;
}
if
(
!
This
->
ddraw_window
)
{
if
(
!
pPresentationParameters
->
Windowed
&&
object
->
win_handle
)
{
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
object
->
win_handle
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
);
}
This
->
ddraw_window
=
object
->
win_handle
;
if
(
!
pPresentationParameters
->
Windowed
&&
object
->
win_handle
)
{
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
object
->
win_handle
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
);
}
hDc
=
GetDC
(
object
->
win_handle
);
...
...
@@ -6652,8 +6649,8 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
if
(
buffer
==
GL_FRONT
)
{
RECT
windowsize
;
UINT
h
;
ClientToScreen
(
This
->
ddraw_window
,
&
offset
);
GetClientRect
(
This
->
ddraw_window
,
&
windowsize
);
ClientToScreen
(
((
IWineD3DSwapChainImpl
*
)
src_swapchain
)
->
win_handle
,
&
offset
);
GetClientRect
(
((
IWineD3DSwapChainImpl
*
)
src_swapchain
)
->
win_handle
,
&
windowsize
);
h
=
windowsize
.
bottom
-
windowsize
.
top
;
src_rect
->
x1
-=
offset
.
x
;
src_rect
->
x2
-=
offset
.
x
;
src_rect
->
y1
=
offset
.
y
+
h
-
src_rect
->
y1
;
...
...
@@ -6693,8 +6690,8 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
if
(
buffer
==
GL_FRONT
)
{
RECT
windowsize
;
UINT
h
;
ClientToScreen
(
This
->
ddraw_window
,
&
offset
);
GetClientRect
(
This
->
ddraw_window
,
&
windowsize
);
ClientToScreen
(
((
IWineD3DSwapChainImpl
*
)
dst_swapchain
)
->
win_handle
,
&
offset
);
GetClientRect
(
((
IWineD3DSwapChainImpl
*
)
dst_swapchain
)
->
win_handle
,
&
windowsize
);
h
=
windowsize
.
bottom
-
windowsize
.
top
;
dst_rect
->
x1
-=
offset
.
x
;
dst_rect
->
x2
-=
offset
.
x
;
dst_rect
->
y1
=
offset
.
y
+
h
-
dst_rect
->
y1
;
...
...
@@ -7397,21 +7394,21 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
IWineD3DDevice_SetDisplayMode
(
iface
,
0
,
&
mode
);
if
(
This
->
ddraw_window
&&
!
pPresentationParameters
->
Windowed
)
{
if
(
swapchain
->
win_handle
&&
!
pPresentationParameters
->
Windowed
)
{
if
(
swapchain
->
presentParms
.
Windowed
)
{
/* switch from windowed to fs */
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
This
->
ddraw_window
,
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
swapchain
->
win_handle
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
);
}
else
{
/* Fullscreen -> fullscreen mode change */
MoveWindow
(
This
->
ddraw_window
,
0
,
0
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
,
TRUE
);
MoveWindow
(
swapchain
->
win_handle
,
0
,
0
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
,
TRUE
);
}
}
else
if
(
This
->
ddraw_window
&&
!
swapchain
->
presentParms
.
Windowed
)
{
}
else
if
(
swapchain
->
win_handle
&&
!
swapchain
->
presentParms
.
Windowed
)
{
/* Fullscreen -> windowed switch */
IWineD3DDeviceImpl_RestoreWindow
(
iface
,
This
->
ddraw_window
);
IWineD3DDeviceImpl_RestoreWindow
(
iface
,
swapchain
->
win_handle
);
}
swapchain
->
presentParms
.
Windowed
=
pPresentationParameters
->
Windowed
;
}
else
if
(
!
pPresentationParameters
->
Windowed
)
{
...
...
@@ -7422,7 +7419,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
*/
This
->
style
=
0
;
This
->
exStyle
=
0
;
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
This
->
ddraw_window
,
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
swapchain
->
win_handle
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
);
This
->
style
=
style
;
...
...
dlls/wined3d/surface.c
View file @
25c07dc8
...
...
@@ -3451,8 +3451,8 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
RECT
windowsize
;
POINT
offset
=
{
0
,
0
};
UINT
h
;
ClientToScreen
(
myDevice
->
ddraw_window
,
&
offset
);
GetClientRect
(
myDevice
->
ddraw_window
,
&
windowsize
);
ClientToScreen
(
dstSwapchain
->
win_handle
,
&
offset
);
GetClientRect
(
dstSwapchain
->
win_handle
,
&
windowsize
);
h
=
windowsize
.
bottom
-
windowsize
.
top
;
rect
.
x1
-=
offset
.
x
;
rect
.
x2
-=
offset
.
x
;
rect
.
y1
-=
offset
.
y
;
rect
.
y2
-=
offset
.
y
;
...
...
dlls/wined3d/swapchain_gdi.c
View file @
25c07dc8
...
...
@@ -93,7 +93,7 @@ void x11_copy_to_screen(IWineD3DSwapChainImpl *This, LPRECT rc) {
hSurfaceDC
=
front
->
hDC
;
hDisplayWnd
=
front
->
resource
.
wineD3DDevice
->
ddraw_window
;
hDisplayWnd
=
This
->
win_handle
;
hDisplayDC
=
GetDCEx
(
hDisplayWnd
,
0
,
DCX_CLIPSIBLINGS
|
DCX_CACHE
);
if
(
rc
)
{
TRACE
(
" copying rect (%d,%d)->(%d,%d), offset (%d,%d)
\n
"
,
...
...
dlls/wined3d/wined3d_private.h
View file @
25c07dc8
...
...
@@ -920,7 +920,6 @@ struct IWineD3DDeviceImpl
BOOL
softwareVertexProcessing
;
/* DirectDraw stuff */
HWND
ddraw_window
;
DWORD
ddraw_width
,
ddraw_height
;
WINED3DFORMAT
ddraw_format
;
...
...
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