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
1674ca1e
Commit
1674ca1e
authored
Mar 01, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass const resources to some resource functions.
parent
93b5bcc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
resource.c
dlls/wined3d/resource.c
+4
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-3
No files found.
dlls/wined3d/resource.c
View file @
1674ca1e
...
...
@@ -131,7 +131,7 @@ void resource_unload(IWineD3DResourceImpl *resource)
resource
,
resource
->
resource
.
resourceType
);
}
static
struct
private_data
*
resource_find_private_data
(
IWineD3DResourceImpl
*
This
,
REFGUID
tag
)
static
struct
private_data
*
resource_find_private_data
(
const
struct
IWineD3DResourceImpl
*
This
,
REFGUID
tag
)
{
struct
private_data
*
data
;
struct
list
*
entry
;
...
...
@@ -193,7 +193,7 @@ HRESULT resource_set_private_data(struct IWineD3DResourceImpl *resource, REFGUID
return
WINED3D_OK
;
}
HRESULT
resource_get_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
HRESULT
resource_get_private_data
(
const
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
{
const
struct
private_data
*
d
;
...
...
@@ -260,13 +260,13 @@ DWORD resource_set_priority(struct IWineD3DResourceImpl *resource, DWORD priorit
return
prev
;
}
DWORD
resource_get_priority
(
struct
IWineD3DResourceImpl
*
resource
)
DWORD
resource_get_priority
(
const
struct
IWineD3DResourceImpl
*
resource
)
{
TRACE
(
"resource %p, returning %u.
\n
"
,
resource
,
resource
->
resource
.
priority
);
return
resource
->
resource
.
priority
;
}
WINED3DRESOURCETYPE
resource_get_type
(
struct
IWineD3DResourceImpl
*
resource
)
WINED3DRESOURCETYPE
resource_get_type
(
const
struct
IWineD3DResourceImpl
*
resource
)
{
TRACE
(
"resource %p, returning %#x.
\n
"
,
resource
,
resource
->
resource
.
resourceType
);
return
resource
->
resource
.
resourceType
;
...
...
dlls/wined3d/wined3d_private.h
View file @
1674ca1e
...
...
@@ -1830,14 +1830,14 @@ typedef struct IWineD3DResourceImpl
void
resource_cleanup
(
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
HRESULT
resource_free_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
)
DECLSPEC_HIDDEN
;
DWORD
resource_get_priority
(
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
HRESULT
resource_get_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
,
DWORD
resource_get_priority
(
const
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
HRESULT
resource_get_private_data
(
const
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
DECLSPEC_HIDDEN
;
HRESULT
resource_init
(
struct
IWineD3DResourceImpl
*
resource
,
WINED3DRESOURCETYPE
resource_type
,
IWineD3DDeviceImpl
*
device
,
UINT
size
,
DWORD
usage
,
const
struct
wined3d_format
*
format
,
WINED3DPOOL
pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
const
struct
wined3d_resource_ops
*
resource_ops
)
DECLSPEC_HIDDEN
;
WINED3DRESOURCETYPE
resource_get_type
(
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
WINED3DRESOURCETYPE
resource_get_type
(
const
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
DWORD
resource_set_priority
(
struct
IWineD3DResourceImpl
*
resource
,
DWORD
priority
)
DECLSPEC_HIDDEN
;
HRESULT
resource_set_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
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