Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c289b3cc
Commit
c289b3cc
authored
Apr 04, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Define WINED3DGAMMARAMP based on D3DGAMMARAMP / DDGAMMARAMP.
parent
53ad4cbb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
19 deletions
+25
-19
device.c
dlls/d3d8/device.c
+2
-2
device.c
dlls/d3d9/device.c
+2
-2
device.c
dlls/wined3d/device.c
+3
-3
swapchain.c
dlls/wined3d/swapchain.c
+2
-2
wined3d_interface.h
include/wine/wined3d_interface.h
+16
-10
No files found.
dlls/d3d8/device.c
View file @
c289b3cc
...
...
@@ -273,14 +273,14 @@ void WINAPI IDirect3DDevice8Impl_SetGammaRamp(LPDIRECT3DDEVICE8 iface, DWORD Fla
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetGammaRamp
(
This
->
WineD3DDevice
,
0
,
Flags
,
pRamp
);
return
IWineD3DDevice_SetGammaRamp
(
This
->
WineD3DDevice
,
0
,
Flags
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
}
void
WINAPI
IDirect3DDevice8Impl_GetGammaRamp
(
LPDIRECT3DDEVICE8
iface
,
D3DGAMMARAMP
*
pRamp
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetGammaRamp
(
This
->
WineD3DDevice
,
0
,
pRamp
);
return
IWineD3DDevice_GetGammaRamp
(
This
->
WineD3DDevice
,
0
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateTexture
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
...
...
dlls/d3d9/device.c
View file @
c289b3cc
...
...
@@ -223,14 +223,14 @@ void WINAPI IDirect3DDevice9Impl_SetGammaRamp(LPDIRECT3DDEVICE9 iface, UINT iSwa
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetGammaRamp
(
This
->
WineD3DDevice
,
iSwapChain
,
Flags
,
pRamp
);
return
IWineD3DDevice_SetGammaRamp
(
This
->
WineD3DDevice
,
iSwapChain
,
Flags
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
}
void
WINAPI
IDirect3DDevice9Impl_GetGammaRamp
(
LPDIRECT3DDEVICE9
iface
,
UINT
iSwapChain
,
D3DGAMMARAMP
*
pRamp
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetGammaRamp
(
This
->
WineD3DDevice
,
iSwapChain
,
pRamp
);
return
IWineD3DDevice_GetGammaRamp
(
This
->
WineD3DDevice
,
iSwapChain
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
}
...
...
dlls/wined3d/device.c
View file @
c289b3cc
...
...
@@ -6557,20 +6557,20 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetCreationParameters(IWineD3DDevice *iface,
return
D3D_OK
;
}
void
WINAPI
IWineD3DDeviceImpl_SetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
{
void
WINAPI
IWineD3DDeviceImpl_SetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
DWORD
Flags
,
CONST
WINE
D3DGAMMARAMP
*
pRamp
)
{
IWineD3DSwapChain
*
swapchain
;
HRESULT
hrc
=
D3D_OK
;
TRACE
(
"Relaying to swapchain
\n
"
);
if
((
hrc
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
&
swapchain
))
==
D3D_OK
)
{
IWineD3DSwapChain_SetGammaRamp
(
swapchain
,
Flags
,
(
D3DGAMMARAMP
*
)
pRamp
);
IWineD3DSwapChain_SetGammaRamp
(
swapchain
,
Flags
,
(
WINE
D3DGAMMARAMP
*
)
pRamp
);
IWineD3DSwapChain_Release
(
swapchain
);
}
return
;
}
void
WINAPI
IWineD3DDeviceImpl_GetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
D3DGAMMARAMP
*
pRamp
)
{
void
WINAPI
IWineD3DDeviceImpl_GetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINE
D3DGAMMARAMP
*
pRamp
)
{
IWineD3DSwapChain
*
swapchain
;
HRESULT
hrc
=
D3D_OK
;
...
...
dlls/wined3d/swapchain.c
View file @
c289b3cc
...
...
@@ -453,7 +453,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetPresentParameters(IWineD3DSwapChain *ifa
return
D3D_OK
;
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_SetGammaRamp
(
IWineD3DSwapChain
*
iface
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
){
HRESULT
WINAPI
IWineD3DSwapChainImpl_SetGammaRamp
(
IWineD3DSwapChain
*
iface
,
DWORD
Flags
,
CONST
WINE
D3DGAMMARAMP
*
pRamp
){
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hDC
;
...
...
@@ -465,7 +465,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_SetGammaRamp(IWineD3DSwapChain *iface, DWOR
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetGammaRamp
(
IWineD3DSwapChain
*
iface
,
D3DGAMMARAMP
*
pRamp
){
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetGammaRamp
(
IWineD3DSwapChain
*
iface
,
WINE
D3DGAMMARAMP
*
pRamp
){
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hDC
;
...
...
include/wine/wined3d_interface.h
View file @
c289b3cc
...
...
@@ -146,17 +146,23 @@ DEFINE_GUID(IID_IWineD3DQuery,
/* Also, D3DCAPS8 is a subset of D3DCAPS9 so can be typecase as long as
none of the 9 fields are accessed when the device is d3d8 */
/* TODO: remove the d3d8/d3d9 dependencies by making a all inclusive WINED3D version */
#if defined( __WINE_D3D8_H )
#if defined( __WINE_D3D9_H )
/* Identical: */
# define WINED3DLIGHT D3DLIGHT9
# define WINED3DMATERIAL D3DMATERIAL9
# define WINED3DVIEWPORT D3DVIEWPORT9
# define WINED3DGAMMARAMP D3DGAMMARAMP
#elif defined( __WINE_D3D8_H )
/* Identical: */
# define WINED3DLIGHT D3DLIGHT8
# define WINED3DMATERIAL D3DMATERIAL8
# define WINED3DVIEWPORT D3DVIEWPORT8
# define WINED3DGAMMARAMP D3DGAMMARAMP
#else
/* Identical: */
# define WINED3DLIGHT D3DLIGHT9
# define WINED3DMATERIAL D3DMATERIAL9
# define WINED3DVIEWPORT D3DVIEWPORT9
#else
/* defined (__WINE_D3D_H ) */
/* Identical: */
# define WINED3DGAMMARAMP DDGAMMARAMP
#endif
...
...
@@ -345,8 +351,8 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
struct
IWineD3DSurface
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
SetFVF
)(
THIS_
DWORD
fvf
)
PURE
;
STDMETHOD
(
GetFVF
)(
THIS_
DWORD
*
pfvf
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
WINE
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
WINE
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
*
pIndexData
,
UINT
BaseVertexIndex
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
WINED3DLIGHT
*
pLight
)
PURE
;
...
...
@@ -1294,8 +1300,8 @@ DECLARE_INTERFACE_(IWineD3DSwapChain,IWineD3DBase)
STDMETHOD
(
GetRasterStatus
)(
THIS_
WINED3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
WINED3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetPresentParameters
)(
THIS_
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
SetGammaRamp
)(
THIS_
DWORD
Flags
,
const
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
GetGammaRamp
)(
THIS_
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
SetGammaRamp
)(
THIS_
DWORD
Flags
,
const
WINE
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
GetGammaRamp
)(
THIS_
WINE
D3DGAMMARAMP
*
pRamp
)
PURE
;
};
#undef INTERFACE
...
...
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