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
074977d4
Commit
074977d4
authored
Feb 01, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the IWineD3D typedefs.
parent
36d4268e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
31 deletions
+28
-31
device.c
dlls/wined3d/device.c
+2
-2
directx.c
dlls/wined3d/directx.c
+19
-20
resource.c
dlls/wined3d/resource.c
+1
-1
surface.c
dlls/wined3d/surface.c
+1
-1
wined3d_main.c
dlls/wined3d/wined3d_main.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-5
No files found.
dlls/wined3d/device.c
View file @
074977d4
...
...
@@ -6928,7 +6928,7 @@ static const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
IWineD3DDeviceImpl_RestoreFullscreenWindow
,
};
HRESULT
device_init
(
IWineD3DDeviceImpl
*
device
,
IWineD3DImpl
*
wined3d
,
HRESULT
device_init
(
IWineD3DDeviceImpl
*
device
,
struct
wined3d
*
wined3d
,
UINT
adapter_idx
,
WINED3DDEVTYPE
device_type
,
HWND
focus_window
,
DWORD
flags
,
IWineD3DDeviceParent
*
device_parent
)
{
...
...
@@ -6942,7 +6942,7 @@ HRESULT device_init(IWineD3DDeviceImpl *device, IWineD3DImpl *wined3d,
device
->
lpVtbl
=
&
IWineD3DDevice_Vtbl
;
device
->
ref
=
1
;
device
->
wined3d
=
(
IWineD3D
*
)
wined3d
;
device
->
wined3d
=
wined3d
;
wined3d_incref
(
device
->
wined3d
);
device
->
adapter
=
wined3d
->
adapter_count
?
adapter
:
NULL
;
device
->
device_parent
=
device_parent
;
...
...
dlls/wined3d/directx.c
View file @
074977d4
...
...
@@ -4983,7 +4983,7 @@ static void fillGLAttribFuncs(const struct wined3d_gl_info *gl_info)
}
/* Do not call while under the GL lock. */
static
BOOL
InitAdapters
(
IWineD3DImpl
*
This
)
static
BOOL
InitAdapters
(
struct
wined3d
*
wined3d
)
{
static
HMODULE
mod_gl
;
BOOL
ret
;
...
...
@@ -5040,7 +5040,7 @@ static BOOL InitAdapters(IWineD3DImpl *This)
/* For now only one default adapter */
{
struct
wined3d_adapter
*
adapter
=
&
This
->
adapters
[
0
];
struct
wined3d_adapter
*
adapter
=
&
wined3d
->
adapters
[
0
];
const
struct
wined3d_gl_info
*
gl_info
=
&
adapter
->
gl_info
;
struct
wined3d_fake_gl_ctx
fake_gl_ctx
=
{
0
};
int
iPixelFormat
;
...
...
@@ -5246,30 +5246,29 @@ static BOOL InitAdapters(IWineD3DImpl *This)
fillGLAttribFuncs
(
&
adapter
->
gl_info
);
adapter
->
opengl
=
TRUE
;
}
This
->
adapter_count
=
1
;
TRACE
(
"%u adapters successfully initialized
\n
"
,
This
->
adapter_count
);
wined3d
->
adapter_count
=
1
;
TRACE
(
"%u adapters successfully initialized
.
\n
"
,
wined3d
->
adapter_count
);
return
TRUE
;
nogl_adapter:
/* Initialize an adapter for ddraw-only memory counting */
memset
(
This
->
adapters
,
0
,
sizeof
(
This
->
adapters
));
This
->
adapters
[
0
].
ordinal
=
0
;
This
->
adapters
[
0
].
opengl
=
FALSE
;
This
->
adapters
[
0
].
monitorPoint
.
x
=
-
1
;
This
->
adapters
[
0
].
monitorPoint
.
y
=
-
1
;
This
->
adapters
[
0
].
driver_info
.
name
=
"Display"
;
This
->
adapters
[
0
].
driver_info
.
description
=
"WineD3D DirectDraw Emulation"
;
if
(
wined3d_settings
.
emulated_textureram
)
{
This
->
adapters
[
0
].
TextureRam
=
wined3d_settings
.
emulated_textureram
;
}
else
{
This
->
adapters
[
0
].
TextureRam
=
8
*
1024
*
1024
;
/* This is plenty for a DDraw-only card */
}
memset
(
wined3d
->
adapters
,
0
,
sizeof
(
wined3d
->
adapters
));
wined3d
->
adapters
[
0
].
ordinal
=
0
;
wined3d
->
adapters
[
0
].
opengl
=
FALSE
;
wined3d
->
adapters
[
0
].
monitorPoint
.
x
=
-
1
;
wined3d
->
adapters
[
0
].
monitorPoint
.
y
=
-
1
;
wined3d
->
adapters
[
0
].
driver_info
.
name
=
"Display"
;
wined3d
->
adapters
[
0
].
driver_info
.
description
=
"WineD3D DirectDraw Emulation"
;
if
(
wined3d_settings
.
emulated_textureram
)
wined3d
->
adapters
[
0
].
TextureRam
=
wined3d_settings
.
emulated_textureram
;
else
wined3d
->
adapters
[
0
].
TextureRam
=
8
*
1024
*
1024
;
/* This is plenty for a DDraw-only card */
initPixelFormatsNoGL
(
&
This
->
adapters
[
0
].
gl_info
);
initPixelFormatsNoGL
(
&
wined3d
->
adapters
[
0
].
gl_info
);
This
->
adapter_count
=
1
;
wined3d
->
adapter_count
=
1
;
return
FALSE
;
}
...
...
@@ -5281,7 +5280,7 @@ const struct wined3d_parent_ops wined3d_null_parent_ops =
};
/* Do not call while under the GL lock. */
HRESULT
wined3d_init
(
IWineD3DImpl
*
wined3d
,
UINT
version
,
void
*
parent
)
HRESULT
wined3d_init
(
struct
wined3d
*
wined3d
,
UINT
version
,
void
*
parent
)
{
wined3d
->
dxVersion
=
version
;
wined3d
->
ref
=
1
;
...
...
dlls/wined3d/resource.c
View file @
074977d4
...
...
@@ -210,7 +210,7 @@ HRESULT resource_get_private_data(struct IWineD3DResourceImpl *resource, REFGUID
if
(
d
->
flags
&
WINED3DSPD_IUNKNOWN
)
{
*
(
IUnknown
**
)
data
=
d
->
ptr
.
object
;
if
(
((
IWineD3DImpl
*
)
resource
->
resource
.
device
->
wined3d
)
->
dxVersion
!=
7
)
if
(
resource
->
resource
.
device
->
wined3d
->
dxVersion
!=
7
)
{
/* D3D8 and D3D9 addref the private data, DDraw does not. This
* can't be handled in ddraw because it doesn't know if the
...
...
dlls/wined3d/surface.c
View file @
074977d4
...
...
@@ -2384,7 +2384,7 @@ void d3dfmt_p8_init_palette(IWineD3DSurfaceImpl *This, BYTE table[256][4], BOOL
if
(
!
pal
)
{
UINT
dxVersion
=
((
IWineD3DImpl
*
)
device
->
wined3d
)
->
dxVersion
;
UINT
dxVersion
=
device
->
wined3d
->
dxVersion
;
/* In DirectDraw the palette is a property of the surface, there are no such things as device palettes. */
if
(
dxVersion
<=
7
)
...
...
dlls/wined3d/wined3d_main.c
View file @
074977d4
...
...
@@ -80,7 +80,7 @@ wined3d_settings_t wined3d_settings =
/* Do not call while under the GL lock. */
struct
wined3d
*
CDECL
wined3d_create
(
UINT
version
,
void
*
parent
)
{
IWineD3DImpl
*
object
;
struct
wined3d
*
object
;
HRESULT
hr
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
...
...
@@ -100,7 +100,7 @@ struct wined3d * CDECL wined3d_create(UINT version, void *parent)
TRACE
(
"Created wined3d object %p for d3d%d support.
\n
"
,
object
,
version
);
return
(
IWineD3D
*
)
object
;
return
object
;
}
static
DWORD
get_config_key
(
HKEY
defkey
,
HKEY
appkey
,
const
char
*
name
,
char
*
buffer
,
DWORD
size
)
...
...
dlls/wined3d/wined3d_private.h
View file @
074977d4
...
...
@@ -59,8 +59,6 @@ typedef struct IWineD3DSwapChainImpl IWineD3DSwapChainImpl;
struct
IWineD3DBaseShaderImpl
;
struct
IWineD3DBaseTextureImpl
;
struct
IWineD3DResourceImpl
;
typedef
struct
wined3d
IWineD3DImpl
;
typedef
struct
wined3d
IWineD3D
;
/* Texture format fixups */
...
...
@@ -1622,7 +1620,7 @@ struct wined3d
struct
wined3d_adapter
adapters
[
1
];
};
HRESULT
wined3d_init
(
IWineD3DImpl
*
wined3d
,
UINT
version
,
void
*
parent
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_init
(
struct
wined3d
*
wined3d
,
UINT
version
,
void
*
parent
)
DECLSPEC_HIDDEN
;
BOOL
wined3d_register_window
(
HWND
window
,
struct
IWineD3DDeviceImpl
*
device
)
DECLSPEC_HIDDEN
;
void
wined3d_unregister_window
(
HWND
window
)
DECLSPEC_HIDDEN
;
...
...
@@ -1642,7 +1640,7 @@ struct IWineD3DDeviceImpl
/* WineD3D Information */
IWineD3DDeviceParent
*
device_parent
;
IWineD3D
*
wined3d
;
struct
wined3d
*
wined3d
;
struct
wined3d_adapter
*
adapter
;
/* Window styles to restore when switching fullscreen mode */
...
...
@@ -1770,7 +1768,7 @@ HRESULT device_clear_render_targets(IWineD3DDeviceImpl *device, UINT rt_count, I
BOOL
device_context_add
(
IWineD3DDeviceImpl
*
device
,
struct
wined3d_context
*
context
)
DECLSPEC_HIDDEN
;
void
device_context_remove
(
IWineD3DDeviceImpl
*
device
,
struct
wined3d_context
*
context
)
DECLSPEC_HIDDEN
;
void
device_get_draw_rect
(
IWineD3DDeviceImpl
*
device
,
RECT
*
rect
)
DECLSPEC_HIDDEN
;
HRESULT
device_init
(
IWineD3DDeviceImpl
*
device
,
IWineD3DImpl
*
wined3d
,
HRESULT
device_init
(
IWineD3DDeviceImpl
*
device
,
struct
wined3d
*
wined3d
,
UINT
adapter_idx
,
WINED3DDEVTYPE
device_type
,
HWND
focus_window
,
DWORD
flags
,
IWineD3DDeviceParent
*
device_parent
)
DECLSPEC_HIDDEN
;
void
device_preload_textures
(
IWineD3DDeviceImpl
*
device
)
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