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
abfd6b47
Commit
abfd6b47
authored
Jul 11, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the surface parameter to d3dfmt_p8_init_palette() const.
parent
3e9930f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
surface.c
dlls/wined3d/surface.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/surface.c
View file @
abfd6b47
...
@@ -4245,10 +4245,10 @@ HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_c
...
@@ -4245,10 +4245,10 @@ HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_c
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
void
d3dfmt_p8_init_palette
(
struct
wined3d_surface
*
surface
,
BYTE
table
[
256
][
4
],
BOOL
colorkey
)
void
d3dfmt_p8_init_palette
(
const
struct
wined3d_surface
*
surface
,
BYTE
table
[
256
][
4
],
BOOL
colorkey
)
{
{
struct
wined3d_device
*
device
=
surface
->
resource
.
device
;
const
struct
wined3d_device
*
device
=
surface
->
resource
.
device
;
struct
wined3d_palette
*
pal
=
surface
->
palette
;
const
struct
wined3d_palette
*
pal
=
surface
->
palette
;
BOOL
index_in_alpha
=
FALSE
;
BOOL
index_in_alpha
=
FALSE
;
unsigned
int
i
;
unsigned
int
i
;
...
...
dlls/wined3d/wined3d_private.h
View file @
abfd6b47
...
@@ -2162,7 +2162,7 @@ typedef enum {
...
@@ -2162,7 +2162,7 @@ typedef enum {
HRESULT
d3dfmt_get_conv
(
const
struct
wined3d_surface
*
surface
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
HRESULT
d3dfmt_get_conv
(
const
struct
wined3d_surface
*
surface
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
struct
wined3d_format
*
format
,
CONVERT_TYPES
*
convert
)
DECLSPEC_HIDDEN
;
struct
wined3d_format
*
format
,
CONVERT_TYPES
*
convert
)
DECLSPEC_HIDDEN
;
void
d3dfmt_p8_init_palette
(
struct
wined3d_surface
*
surface
,
BYTE
table
[
256
][
4
],
BOOL
colorkey
)
DECLSPEC_HIDDEN
;
void
d3dfmt_p8_init_palette
(
const
struct
wined3d_surface
*
surface
,
BYTE
table
[
256
][
4
],
BOOL
colorkey
)
DECLSPEC_HIDDEN
;
BOOL
palette9_changed
(
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
BOOL
palette9_changed
(
struct
wined3d_surface
*
surface
)
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