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
82710124
Commit
82710124
authored
Aug 30, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Avoid LPCWSTR.
parent
7175367a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
13 deletions
+22
-13
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+1
-1
shader.c
dlls/d3dx9_36/shader.c
+10
-2
surface.c
dlls/d3dx9_36/surface.c
+7
-6
util.c
dlls/d3dx9_36/util.c
+1
-1
d3dx9core.h
include/d3dx9core.h
+1
-1
d3dx9tex.h
include/d3dx9tex.h
+2
-2
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
82710124
...
...
@@ -67,7 +67,7 @@ struct pixel_format_desc {
void
(
*
to_rgba
)(
const
struct
vec4
*
src
,
struct
vec4
*
dst
,
const
PALETTEENTRY
*
palette
);
};
HRESULT
map_view_of_file
(
LPCWSTR
filename
,
LPVOID
*
buffer
,
DWORD
*
length
)
DECLSPEC_HIDDEN
;
HRESULT
map_view_of_file
(
const
WCHAR
*
filename
,
void
*
*
buffer
,
DWORD
*
length
)
DECLSPEC_HIDDEN
;
HRESULT
load_resource_into_memory
(
HMODULE
module
,
HRSRC
resinfo
,
LPVOID
*
buffer
,
DWORD
*
length
)
DECLSPEC_HIDDEN
;
HRESULT
write_buffer_to_file
(
const
WCHAR
*
filename
,
ID3DXBuffer
*
buffer
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3dx9_36/shader.c
View file @
82710124
...
...
@@ -347,7 +347,10 @@ HRESULT WINAPI D3DXAssembleShaderFromResourceW(HMODULE module, const WCHAR *reso
HRSRC
res
;
DWORD
len
;
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
LPCWSTR
)
RT_RCDATA
)))
TRACE
(
"module %p, resource %s, defines %p, include %p, flags %#x, shader %p, error_messages %p.
\n
"
,
module
,
debugstr_w
(
resource
),
defines
,
include
,
flags
,
shader
,
error_messages
);
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
const
WCHAR
*
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
...
...
@@ -468,7 +471,12 @@ HRESULT WINAPI D3DXCompileShaderFromResourceW(HMODULE module, const WCHAR *resou
HRSRC
res
;
DWORD
len
;
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
LPCWSTR
)
RT_RCDATA
)))
TRACE
(
"module %p, resource %s, defines %p, include %p, entrypoint %s, profile %s, "
"flags %#x, shader %p, error_messages %p, constant_table %p.
\n
"
,
module
,
debugstr_w
(
resource
),
defines
,
include
,
debugstr_a
(
entrypoint
),
debugstr_a
(
profile
),
flags
,
shader
,
error_messages
,
constant_table
);
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
const
WCHAR
*
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
...
...
dlls/d3dx9_36/surface.c
View file @
82710124
...
...
@@ -919,18 +919,19 @@ HRESULT WINAPI D3DXGetImageInfoFromFileA(LPCSTR file, D3DXIMAGE_INFO *info)
return
hr
;
}
HRESULT
WINAPI
D3DXGetImageInfoFromFileW
(
LPCWSTR
file
,
D3DXIMAGE_INFO
*
info
)
HRESULT
WINAPI
D3DXGetImageInfoFromFileW
(
const
WCHAR
*
file
,
D3DXIMAGE_INFO
*
info
)
{
void
*
buffer
;
HRESULT
hr
;
DWORD
size
;
LPVOID
buffer
;
TRACE
(
"
(%s, %p): relay
\n
"
,
debugstr_w
(
file
),
info
);
TRACE
(
"
file %s, info %p.
\n
"
,
debugstr_w
(
file
),
info
);
if
(
!
file
)
return
D3DERR_INVALIDCALL
;
if
(
!
file
)
return
D3DERR_INVALIDCALL
;
hr
=
map_view_of_file
(
file
,
&
buffer
,
&
size
);
if
(
FAILED
(
hr
))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
map_view_of_file
(
file
,
&
buffer
,
&
size
)))
return
D3DXERR_INVALIDDATA
;
hr
=
D3DXGetImageInfoFromFileInMemory
(
buffer
,
size
,
info
);
UnmapViewOfFile
(
buffer
);
...
...
dlls/d3dx9_36/util.c
View file @
82710124
...
...
@@ -108,7 +108,7 @@ static const struct pixel_format_desc formats[] =
* The caller must UnmapViewOfFile when it doesn't need the data anymore
*
*/
HRESULT
map_view_of_file
(
LPCWSTR
filename
,
LPVOID
*
buffer
,
DWORD
*
length
)
HRESULT
map_view_of_file
(
const
WCHAR
*
filename
,
void
*
*
buffer
,
DWORD
*
length
)
{
HANDLE
hfile
,
hmapping
=
NULL
;
...
...
include/d3dx9core.h
View file @
82710124
...
...
@@ -144,7 +144,7 @@ DECLARE_INTERFACE_(ID3DXFont, IUnknown)
STDMETHOD
(
PreloadCharacters
)(
THIS_
UINT
first
,
UINT
last
)
PURE
;
STDMETHOD
(
PreloadGlyphs
)(
THIS_
UINT
first
,
UINT
last
)
PURE
;
STDMETHOD
(
PreloadTextA
)(
THIS_
LPCSTR
string
,
INT
count
)
PURE
;
STDMETHOD
(
PreloadTextW
)(
THIS_
LPCWSTR
string
,
INT
count
)
PURE
;
STDMETHOD
(
PreloadTextW
)(
THIS_
const
WCHAR
*
string
,
INT
count
)
PURE
;
STDMETHOD_
(
INT
,
DrawTextA
)(
THIS_
struct
ID3DXSprite
*
sprite
,
const
char
*
string
,
INT
count
,
RECT
*
rect
,
DWORD
format
,
D3DCOLOR
color
)
PURE
;
...
...
include/d3dx9tex.h
View file @
82710124
...
...
@@ -93,11 +93,11 @@ extern "C" {
/* Image Information */
HRESULT
WINAPI
D3DXGetImageInfoFromFileA
(
LPCSTR
file
,
D3DXIMAGE_INFO
*
info
);
HRESULT
WINAPI
D3DXGetImageInfoFromFileW
(
LPCWSTR
file
,
D3DXIMAGE_INFO
*
info
);
HRESULT
WINAPI
D3DXGetImageInfoFromFileW
(
const
WCHAR
*
file
,
D3DXIMAGE_INFO
*
info
);
#define D3DXGetImageInfoFromFile WINELIB_NAME_AW(D3DXGetImageInfoFromFile)
HRESULT
WINAPI
D3DXGetImageInfoFromResourceA
(
HMODULE
module
,
LPCSTR
resource
,
D3DXIMAGE_INFO
*
info
);
HRESULT
WINAPI
D3DXGetImageInfoFromResourceW
(
HMODULE
module
,
LPCWSTR
resource
,
D3DXIMAGE_INFO
*
info
);
HRESULT
WINAPI
D3DXGetImageInfoFromResourceW
(
HMODULE
module
,
const
WCHAR
*
resource
,
D3DXIMAGE_INFO
*
info
);
#define D3DXGetImageInfoFromResource WINELIB_NAME_AW(D3DXGetImageInfoFromResource)
HRESULT
WINAPI
D3DXGetImageInfoFromFileInMemory
(
LPCVOID
data
,
UINT
datasize
,
D3DXIMAGE_INFO
*
info
);
...
...
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