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
cd9a8b74
Commit
cd9a8b74
authored
Mar 15, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the device window in the swapchain.
The swapchain's current window might be changed by SetDestWindowOverride().
parent
aa819fe8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
device.c
dlls/wined3d/device.c
+1
-1
swapchain.c
dlls/wined3d/swapchain.c
+3
-2
swapchain_base.c
dlls/wined3d/swapchain_base.c
+4
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/device.c
View file @
cd9a8b74
...
...
@@ -6632,7 +6632,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
pPresentationParameters
->
BackBufferHeight
);
}
else
{
/* Fullscreen -> fullscreen mode change */
MoveWindow
(
swapchain
->
win_handle
,
0
,
0
,
MoveWindow
(
swapchain
->
device_window
,
0
,
0
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
,
TRUE
);
}
...
...
dlls/wined3d/swapchain.c
View file @
cd9a8b74
...
...
@@ -598,7 +598,7 @@ static LONG fullscreen_exstyle(LONG exstyle)
void
swapchain_setup_fullscreen_window
(
IWineD3DSwapChainImpl
*
swapchain
,
UINT
w
,
UINT
h
)
{
IWineD3DDeviceImpl
*
device
=
swapchain
->
device
;
HWND
window
=
swapchain
->
win_handle
;
HWND
window
=
swapchain
->
device_window
;
BOOL
filter_messages
;
LONG
style
,
exstyle
;
...
...
@@ -632,7 +632,7 @@ void swapchain_setup_fullscreen_window(IWineD3DSwapChainImpl *swapchain, UINT w,
void
swapchain_restore_fullscreen_window
(
IWineD3DSwapChainImpl
*
swapchain
)
{
IWineD3DDeviceImpl
*
device
=
swapchain
->
device
;
HWND
window
=
swapchain
->
win_handle
;
HWND
window
=
swapchain
->
device_window
;
BOOL
filter_messages
;
LONG
style
,
exstyle
;
...
...
@@ -712,6 +712,7 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface
swapchain
->
parent
=
parent
;
swapchain
->
ref
=
1
;
swapchain
->
win_handle
=
window
;
swapchain
->
device_window
=
window
;
if
(
!
present_parameters
->
Windowed
&&
window
)
{
...
...
dlls/wined3d/swapchain_base.c
View file @
cd9a8b74
...
...
@@ -171,9 +171,9 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_SetGammaRamp(IWineD3DSwapChain *iface,
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hDC
;
TRACE
(
"(%p) : pRamp@%p flags(%d)
\n
"
,
This
,
pRamp
,
Flags
);
hDC
=
GetDC
(
This
->
win_handle
);
hDC
=
GetDC
(
This
->
device_window
);
SetDeviceGammaRamp
(
hDC
,
(
LPVOID
)
pRamp
);
ReleaseDC
(
This
->
win_handle
,
hDC
);
ReleaseDC
(
This
->
device_window
,
hDC
);
return
WINED3D_OK
;
}
...
...
@@ -183,9 +183,9 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetGammaRamp(IWineD3DSwapChain *iface,
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hDC
;
TRACE
(
"(%p) : pRamp@%p
\n
"
,
This
,
pRamp
);
hDC
=
GetDC
(
This
->
win_handle
);
hDC
=
GetDC
(
This
->
device_window
);
GetDeviceGammaRamp
(
hDC
,
pRamp
);
ReleaseDC
(
This
->
win_handle
,
hDC
);
ReleaseDC
(
This
->
device_window
,
hDC
);
return
WINED3D_OK
;
}
dlls/wined3d/wined3d_private.h
View file @
cd9a8b74
...
...
@@ -2553,6 +2553,7 @@ struct IWineD3DSwapChainImpl
unsigned
int
num_contexts
;
HWND
win_handle
;
HWND
device_window
;
};
const
IWineD3DSwapChainVtbl
IWineGDISwapChain_Vtbl
DECLSPEC_HIDDEN
;
...
...
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