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
950c40b1
Commit
950c40b1
authored
Feb 14, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Handle pixel formats larger than 32 bits in surface loading / filtering functions.
parent
73e4f620
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+1
-0
math.c
dlls/d3dx9_36/math.c
+1
-1
surface.c
dlls/d3dx9_36/surface.c
+0
-0
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
950c40b1
...
...
@@ -98,6 +98,7 @@ HRESULT load_volume_texture_from_dds(IDirect3DVolumeTexture9 *volume_texture, co
const
PALETTEENTRY
*
palette
,
DWORD
filter
,
DWORD
color_key
,
const
D3DXIMAGE_INFO
*
src_info
)
DECLSPEC_HIDDEN
;
unsigned
short
float_32_to_16
(
const
float
in
)
DECLSPEC_HIDDEN
;
float
float_16_to_32
(
const
unsigned
short
in
)
DECLSPEC_HIDDEN
;
/* debug helpers */
const
char
*
debug_d3dxparameter_class
(
D3DXPARAMETER_CLASS
c
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3dx9_36/math.c
View file @
950c40b1
...
...
@@ -2226,7 +2226,7 @@ D3DXFLOAT16 *WINAPI D3DXFloat32To16Array(D3DXFLOAT16 *pout, const FLOAT *pin, UI
/* Native d3dx9's D3DXFloat16to32Array lacks support for NaN and Inf. Specifically, e = 16 is treated as a
* regular number - e.g., 0x7fff is converted to 131008.0 and 0xffff to -131008.0. */
static
inline
float
float_16_to_32
(
const
unsigned
short
in
)
float
float_16_to_32
(
const
unsigned
short
in
)
{
const
unsigned
short
s
=
(
in
&
0x8000
);
const
unsigned
short
e
=
(
in
&
0x7C00
)
>>
10
;
...
...
dlls/d3dx9_36/surface.c
View file @
950c40b1
This diff is collapsed.
Click to expand it.
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