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
4f170816
Commit
4f170816
authored
Jun 12, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make some surface functions static.
parent
9a874aca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
surface.c
dlls/wined3d/surface.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-4
No files found.
dlls/wined3d/surface.c
View file @
4f170816
...
...
@@ -591,7 +591,7 @@ static void surface_evict_sysmem(struct wined3d_surface *surface)
}
/* Context activation is done by the caller. */
void
surface_bind
(
struct
wined3d_surface
*
surface
,
struct
wined3d_context
*
context
,
BOOL
srgb
)
static
void
surface_bind
(
struct
wined3d_surface
*
surface
,
struct
wined3d_context
*
context
,
BOOL
srgb
)
{
TRACE
(
"surface %p, context %p, srgb %#x.
\n
"
,
surface
,
context
,
srgb
);
...
...
@@ -1795,7 +1795,7 @@ static void surface_remove_pbo(struct wined3d_surface *surface, const struct win
surface
->
flags
&=
~
SFLAG_PBO
;
}
BOOL
surface_init_sysmem
(
struct
wined3d_surface
*
surface
)
static
BOOL
surface_init_sysmem
(
struct
wined3d_surface
*
surface
)
{
if
(
!
surface
->
resource
.
allocatedMemory
)
{
...
...
@@ -2392,7 +2392,7 @@ static void surface_upload_data(struct wined3d_surface *surface, const struct wi
}
}
HRESULT
d3dfmt_get_conv
(
const
struct
wined3d_surface
*
surface
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
static
HRESULT
d3dfmt_get_conv
(
const
struct
wined3d_surface
*
surface
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
struct
wined3d_format
*
format
,
enum
wined3d_conversion_type
*
conversion_type
)
{
BOOL
colorkey_active
=
need_alpha_ck
&&
(
surface
->
CKeyFlags
&
WINEDDSD_CKSRCBLT
);
...
...
dlls/wined3d/wined3d_private.h
View file @
4f170816
...
...
@@ -2085,11 +2085,9 @@ static inline GLuint surface_get_texture_name(const struct wined3d_surface *surf
}
void
surface_add_dirty_rect
(
struct
wined3d_surface
*
surface
,
const
struct
wined3d_box
*
dirty_rect
)
DECLSPEC_HIDDEN
;
void
surface_bind
(
struct
wined3d_surface
*
surface
,
struct
wined3d_context
*
context
,
BOOL
srgb
)
DECLSPEC_HIDDEN
;
HRESULT
surface_color_fill
(
struct
wined3d_surface
*
s
,
const
RECT
*
rect
,
const
struct
wined3d_color
*
color
)
DECLSPEC_HIDDEN
;
GLenum
surface_get_gl_buffer
(
const
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
BOOL
surface_init_sysmem
(
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
void
surface_internal_preload
(
struct
wined3d_surface
*
surface
,
enum
WINED3DSRGB
srgb
)
DECLSPEC_HIDDEN
;
BOOL
surface_is_offscreen
(
const
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
HRESULT
surface_load
(
struct
wined3d_surface
*
surface
,
BOOL
srgb
)
DECLSPEC_HIDDEN
;
...
...
@@ -2182,8 +2180,6 @@ enum wined3d_conversion_type
WINED3D_CT_CK_ARGB32
,
};
HRESULT
d3dfmt_get_conv
(
const
struct
wined3d_surface
*
surface
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
struct
wined3d_format
*
format
,
enum
wined3d_conversion_type
*
conversion_type
)
DECLSPEC_HIDDEN
;
void
d3dfmt_p8_init_palette
(
const
struct
wined3d_surface
*
surface
,
BYTE
table
[
256
][
4
],
BOOL
colorkey
)
DECLSPEC_HIDDEN
;
struct
wined3d_vertex_declaration_element
...
...
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