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
fce54bcc
Commit
fce54bcc
authored
Apr 01, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add WINED3DDISPLAYMODE to wined3d_types.h.
parent
eed12099
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
20 deletions
+23
-20
device.c
dlls/d3d8/device.c
+1
-1
directx.c
dlls/d3d8/directx.c
+2
-2
device.c
dlls/d3d9/device.c
+1
-1
directx.c
dlls/d3d9/directx.c
+2
-2
swapchain.c
dlls/d3d9/swapchain.c
+1
-1
device.c
dlls/wined3d/device.c
+1
-1
directx.c
dlls/wined3d/directx.c
+2
-2
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
wined3d_interface.h
include/wine/wined3d_interface.h
+4
-4
wined3d_types.h
include/wine/wined3d_types.h
+8
-5
No files found.
dlls/d3d8/device.c
View file @
fce54bcc
...
...
@@ -144,7 +144,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetDeviceCaps(LPDIRECT3DDEVICE8 iface, D3DCA
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDisplayMode
(
LPDIRECT3DDEVICE8
iface
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetDisplayMode
(
This
->
WineD3DDevice
,
0
,
pMode
);
return
IWineD3DDevice_GetDisplayMode
(
This
->
WineD3DDevice
,
0
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetCreationParameters
(
LPDIRECT3DDEVICE8
iface
,
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
{
...
...
dlls/d3d8/directx.c
View file @
fce54bcc
...
...
@@ -118,12 +118,12 @@ UINT WINAPI IDirect3D8Impl_GetAdapterModeCount (LPDIRECT3D8 iface,UINT Adapter)
HRESULT
WINAPI
IDirect3D8Impl_EnumAdapterModes
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
UINT
Mode
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
/* FIXME: USe a constant WINED3DFOTMAT_ANY, or something similar */
return
IWineD3D_EnumAdapterModes
(
This
->
WineD3D
,
Adapter
,
0
/* format */
,
Mode
,
pMode
);
return
IWineD3D_EnumAdapterModes
(
This
->
WineD3D
,
Adapter
,
0
/* format */
,
Mode
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3D8Impl_GetAdapterDisplayMode
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
return
IWineD3D_GetAdapterDisplayMode
(
This
->
WineD3D
,
Adapter
,
pMode
);
return
IWineD3D_GetAdapterDisplayMode
(
This
->
WineD3D
,
Adapter
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceType
(
LPDIRECT3D8
iface
,
...
...
dlls/d3d9/device.c
View file @
fce54bcc
...
...
@@ -132,7 +132,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetDeviceCaps(LPDIRECT3DDEVICE9 iface, D3D
HRESULT
WINAPI
IDirect3DDevice9Impl_GetDisplayMode
(
LPDIRECT3DDEVICE9
iface
,
UINT
iSwapChain
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetDisplayMode
(
This
->
WineD3DDevice
,
iSwapChain
,
pMode
);
return
IWineD3DDevice_GetDisplayMode
(
This
->
WineD3DDevice
,
iSwapChain
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3DDevice9Impl_GetCreationParameters
(
LPDIRECT3DDEVICE9
iface
,
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
{
...
...
dlls/d3d9/directx.c
View file @
fce54bcc
...
...
@@ -102,12 +102,12 @@ UINT WINAPI IDirect3D9Impl_GetAdapterModeCount(LPDIRECT3D9 iface, UINT Adapter,
HRESULT
WINAPI
IDirect3D9Impl_EnumAdapterModes
(
LPDIRECT3D9
iface
,
UINT
Adapter
,
D3DFORMAT
Format
,
UINT
Mode
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
iface
;
return
IWineD3D_EnumAdapterModes
(
This
->
WineD3D
,
Adapter
,
Format
,
Mode
,
pMode
);
return
IWineD3D_EnumAdapterModes
(
This
->
WineD3D
,
Adapter
,
Format
,
Mode
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3D9Impl_GetAdapterDisplayMode
(
LPDIRECT3D9
iface
,
UINT
Adapter
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
iface
;
return
IWineD3D_GetAdapterDisplayMode
(
This
->
WineD3D
,
Adapter
,
pMode
);
return
IWineD3D_GetAdapterDisplayMode
(
This
->
WineD3D
,
Adapter
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3D9Impl_CheckDeviceType
(
LPDIRECT3D9
iface
,
...
...
dlls/d3d9/swapchain.c
View file @
fce54bcc
...
...
@@ -100,7 +100,7 @@ HRESULT WINAPI IDirect3DSwapChain9Impl_GetRasterStatus(LPDIRECT3DSWAPCHAIN9 ifac
HRESULT
WINAPI
IDirect3DSwapChain9Impl_GetDisplayMode
(
LPDIRECT3DSWAPCHAIN9
iface
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3DSwapChain9Impl
*
This
=
(
IDirect3DSwapChain9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DSwapChain_GetDisplayMode
(
This
->
wineD3DSwapChain
,
pMode
);
return
IWineD3DSwapChain_GetDisplayMode
(
This
->
wineD3DSwapChain
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3DSwapChain9Impl_GetDevice
(
LPDIRECT3DSWAPCHAIN9
iface
,
IDirect3DDevice9
**
ppDevice
)
{
...
...
dlls/wined3d/device.c
View file @
fce54bcc
...
...
@@ -4764,7 +4764,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDeviceCaps(IWineD3DDevice *iface, WINED3DCA
return
IWineD3D_GetDeviceCaps
(
This
->
wineD3D
,
This
->
adapterNo
,
This
->
devType
,
pCaps
);
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
D3DDISPLAYMODE
*
pMode
)
{
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINE
D3DDISPLAYMODE
*
pMode
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChain
*
swapChain
;
HRESULT
hr
;
...
...
dlls/wined3d/directx.c
View file @
fce54bcc
...
...
@@ -836,7 +836,7 @@ UINT WINAPI IWineD3DImpl_GetAdapterModeCount(IWineD3D *iface, UINT Adapter,
}
/* Note: dx9 supplies a format. Calls from d3d8 supply D3DFMT_UNKNOWN */
HRESULT
WINAPI
IWineD3DImpl_EnumAdapterModes
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DFORMAT
Format
,
UINT
Mode
,
D3DDISPLAYMODE
*
pMode
)
{
HRESULT
WINAPI
IWineD3DImpl_EnumAdapterModes
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DFORMAT
Format
,
UINT
Mode
,
WINE
D3DDISPLAYMODE
*
pMode
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter:%d, mode:%d, pMode:%p, format:%s)
\n
"
,
This
,
Adapter
,
Mode
,
pMode
,
debug_d3dformat
(
Format
));
...
...
@@ -943,7 +943,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, WINE
return
D3D_OK
;
}
HRESULT
WINAPI
IWineD3DImpl_GetAdapterDisplayMode
(
IWineD3D
*
iface
,
UINT
Adapter
,
D3DDISPLAYMODE
*
pMode
)
{
HRESULT
WINAPI
IWineD3DImpl_GetAdapterDisplayMode
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINE
D3DDISPLAYMODE
*
pMode
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter: %d, pMode: %p)
\n
"
,
This
,
Adapter
,
pMode
);
...
...
dlls/wined3d/swapchain.c
View file @
fce54bcc
...
...
@@ -394,7 +394,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, D
return
D3D_OK
;
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetDisplayMode
(
IWineD3DSwapChain
*
iface
,
D3DDISPLAYMODE
*
pMode
)
{
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetDisplayMode
(
IWineD3DSwapChain
*
iface
,
WINE
D3DDISPLAYMODE
*
pMode
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hdc
;
int
bpp
=
0
;
...
...
include/wine/wined3d_interface.h
View file @
fce54bcc
...
...
@@ -254,8 +254,8 @@ DECLARE_INTERFACE_(IWineD3D, IWineD3DBase)
STDMETHOD
(
RegisterSoftwareDevice
)(
THIS_
void
*
pInitializeFunction
)
PURE
;
STDMETHOD_
(
HMONITOR
,
GetAdapterMonitor
)(
THIS_
UINT
Adapter
)
PURE
;
STDMETHOD_
(
UINT
,
GetAdapterModeCount
)(
THIS_
UINT
Adapter
,
WINED3DFORMAT
Format
)
PURE
;
STDMETHOD
(
EnumAdapterModes
)(
THIS_
UINT
Adapter
,
UINT
Mode
,
WINED3DFORMAT
Format
,
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetAdapterDisplayMode
)(
THIS_
UINT
Adapter
,
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
EnumAdapterModes
)(
THIS_
UINT
Adapter
,
UINT
Mode
,
WINED3DFORMAT
Format
,
WINE
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetAdapterDisplayMode
)(
THIS_
UINT
Adapter
,
WINE
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetAdapterIdentifier
)(
THIS_
UINT
Adapter
,
DWORD
Flags
,
WINED3DADAPTER_IDENTIFIER
*
pIdentifier
)
PURE
;
STDMETHOD
(
CheckDeviceMultiSampleType
)(
THIS_
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DFORMAT
SurfaceFormat
,
BOOL
Windowed
,
WINED3DMULTISAMPLE_TYPE
MultiSampleType
,
DWORD
*
pQuality
)
PURE
;
STDMETHOD
(
CheckDepthStencilMatch
)(
THIS_
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DFORMAT
AdapterFormat
,
WINED3DFORMAT
RenderTargetFormat
,
WINED3DFORMAT
DepthStencilFormat
)
PURE
;
...
...
@@ -327,7 +327,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
GetCreationParameters
)(
THIS_
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
WINED3DCAPS
*
pCaps
)
PURE
;
STDMETHOD
(
GetDirect3D
)(
THIS_
IWineD3D
**
ppD3D
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
UINT
iSwapChain
,
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
UINT
iSwapChain
,
WINE
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD_
(
UINT
,
GetNumberOfSwapChains
)(
THIS
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
UINT
iSwapChain
,
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetSwapChain
)(
THIS_
UINT
iSwapChain
,
struct
IWineD3DSwapChain
**
pSwapChain
)
PURE
;
...
...
@@ -1294,7 +1294,7 @@ DECLARE_INTERFACE_(IWineD3DSwapChain,IWineD3DBase)
STDMETHOD
(
GetFrontBufferData
)(
THIS_
IWineD3DSurface
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IWineD3DSurface
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
WINE
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetPresentParameters
)(
THIS_
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
SetGammaRamp
)(
THIS_
DWORD
Flags
,
const
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
GetGammaRamp
)(
THIS_
D3DGAMMARAMP
*
pRamp
)
PURE
;
...
...
include/wine/wined3d_types.h
View file @
fce54bcc
...
...
@@ -129,7 +129,6 @@ typedef enum _WINED3DDEGREETYPE {
WINED3DDEGREE_FORCE_DWORD
=
0x7fffffff
}
WINED3DDEGREETYPE
;
typedef
enum
_WINED3DFORMAT
{
WINED3DFMT_UNKNOWN
=
0
,
...
...
@@ -208,9 +207,6 @@ typedef enum _WINED3DFORMAT {
WINED3DFMT_FORCE_DWORD
=
0xFFFFFFFF
}
WINED3DFORMAT
;
typedef
enum
_WINED3DRENDERSTATETYPE
{
WINED3DRS_TEXTUREHANDLE
=
1
,
WINED3DRS_ANTIALIAS
=
2
,
...
...
@@ -356,6 +352,14 @@ typedef enum _WINED3DRENDERSTATETYPE {
#define WINEHIGHEST_RENDER_STATE WINED3DRS_BLENDOPALPHA
/* Highest D3DRS_ value */
typedef
struct
_WINED3DDISPLAYMODE
{
UINT
Width
;
UINT
Height
;
UINT
RefreshRate
;
WINED3DFORMAT
Format
;
}
WINED3DDISPLAYMODE
;
typedef
enum
_WINED3DSWAPEFFECT
{
WINED3DSWAPEFFECT_DISCARD
=
1
,
WINED3DSWAPEFFECT_FLIP
=
2
,
...
...
@@ -364,7 +368,6 @@ typedef enum _WINED3DSWAPEFFECT {
WINED3DSWAPEFFECT_FORCE_DWORD
=
0xFFFFFFFF
}
WINED3DSWAPEFFECT
;
typedef
enum
_WINED3DSAMPLERSTATETYPE
{
WINED3DSAMP_ADDRESSU
=
1
,
WINED3DSAMP_ADDRESSV
=
2
,
...
...
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