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
a4df3919
Commit
a4df3919
authored
Oct 28, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Rename point_filter_simple_data to point_filter_argb_pixels.
parent
a513da06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+4
-3
surface.c
dlls/d3dx9_36/surface.c
+4
-4
volume.c
dlls/d3dx9_36/volume.c
+1
-1
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
a4df3919
...
...
@@ -76,9 +76,10 @@ void convert_argb_pixels(const BYTE *src, UINT src_row_pitch, UINT src_slice_pit
const
struct
volume
*
src_size
,
const
struct
pixel_format_desc
*
src_format
,
BYTE
*
dst
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
const
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
DECLSPEC_HIDDEN
;
void
point_filter_simple_data
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
struct
volume
*
src_size
,
const
struct
pixel_format_desc
*
src_format
,
BYTE
*
dst
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
DECLSPEC_HIDDEN
;
void
point_filter_argb_pixels
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
const
struct
volume
*
src_size
,
const
struct
pixel_format_desc
*
src_format
,
BYTE
*
dst
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
const
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
DECLSPEC_HIDDEN
;
HRESULT
load_texture_from_dds
(
IDirect3DTexture9
*
texture
,
const
void
*
src_data
,
const
PALETTEENTRY
*
palette
,
DWORD
filter
,
D3DCOLOR
color_key
,
const
D3DXIMAGE_INFO
*
src_info
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3dx9_36/surface.c
View file @
a4df3919
...
...
@@ -1454,16 +1454,16 @@ void convert_argb_pixels(const BYTE *src, UINT src_row_pitch, UINT src_slice_pit
}
/************************************************************
* point_filter_
simple_data
* point_filter_
argb_pixels
*
* Copies the source buffer to the destination buffer, performing
* any necessary format conversion, color keying and stretching
* using a point filter.
* Works only for ARGB formats with 1 - 4 bytes per pixel.
*/
void
point_filter_
simple_data
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
struct
volume
*
src_size
,
void
point_filter_
argb_pixels
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
const
struct
volume
*
src_size
,
const
struct
pixel_format_desc
*
src_format
,
BYTE
*
dst
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
const
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
{
struct
argb_conversion_info
conv_info
,
ck_conv_info
;
const
struct
pixel_format_desc
*
ck_format
=
NULL
;
...
...
@@ -1701,7 +1701,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
/* Always apply a point filter until D3DX_FILTER_LINEAR,
* D3DX_FILTER_TRIANGLE and D3DX_FILTER_BOX are implemented. */
point_filter_
simple_data
(
src_memory
,
src_pitch
,
0
,
&
src_size
,
srcformatdesc
,
point_filter_
argb_pixels
(
src_memory
,
src_pitch
,
0
,
&
src_size
,
srcformatdesc
,
lockrect
.
pBits
,
lockrect
.
Pitch
,
0
,
&
dst_size
,
destformatdesc
,
color_key
);
}
...
...
dlls/d3dx9_36/volume.c
View file @
a4df3919
...
...
@@ -220,7 +220,7 @@ HRESULT WINAPI D3DXLoadVolumeFromMemory(IDirect3DVolume9 *dst_volume,
if
((
filter
&
0xf
)
!=
D3DX_FILTER_POINT
)
FIXME
(
"Unhandled filter %#x.
\n
"
,
filter
);
point_filter_
simple_data
(
src_addr
,
src_row_pitch
,
src_slice_pitch
,
&
src_size
,
src_format_desc
,
point_filter_
argb_pixels
(
src_addr
,
src_row_pitch
,
src_slice_pitch
,
&
src_size
,
src_format_desc
,
locked_box
.
pBits
,
locked_box
.
RowPitch
,
locked_box
.
SlicePitch
,
&
dst_size
,
dst_format_desc
,
color_key
);
}
...
...
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