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
818223e7
Commit
818223e7
authored
Jun 22, 2009
by
Tony Wasserka
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add a stub for D3DXLoadSurfaceFromFileInMemory.
parent
ff95a69f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
surface.c
dlls/d3dx9_36/surface.c
+38
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
818223e7
...
...
@@ -183,7 +183,7 @@
@ stub D3DXLoadPRTCompBufferFromFileW
@ stub D3DXLoadSkinMeshFromXof
@ stub D3DXLoadSurfaceFromFileA
@ st
ub D3DXLoadSurfaceFromFileInMemory
@ st
dcall D3DXLoadSurfaceFromFileInMemory(ptr ptr ptr ptr long ptr long long ptr)
@ stub D3DXLoadSurfaceFromFileW
@ stub D3DXLoadSurfaceFromMemory
@ stub D3DXLoadSurfaceFromResourceA
...
...
dlls/d3dx9_36/surface.c
View file @
818223e7
...
...
@@ -159,3 +159,41 @@ HRESULT WINAPI D3DXGetImageInfoFromResourceW(HMODULE module, LPCWSTR resource, D
}
return
D3DXERR_INVALIDDATA
;
}
/************************************************************
* D3DXLoadSurfaceFromFileInMemory
*
* Loads data from a given buffer into a surface and fills a given
* D3DXIMAGE_INFO structure with info about the source data.
*
* PARAMS
* pDestSurface [I] pointer to the surface
* pDestPalette [I] palette to use
* pDestRect [I] to be filled area of the surface
* pSrcData [I] pointer to the source data
* SrcDataSize [I] size of the source data in bytes
* pSrcRect [I] area of the source data to load
* dwFilter [I] filter to apply on stretching
* Colorkey [I] colorkey
* pSrcInfo [O] pointer to a D3DXIMAGE_INFO structure
*
* RETURNS
* Success: D3D_OK
* Failure: D3DERR_INVALIDCALL, if pDestSurface or pSrcData or SrcDataSize are NULL
* D3DXERR_INVALIDDATA, if pSrcData is no valid image file
*
*/
HRESULT
WINAPI
D3DXLoadSurfaceFromFileInMemory
(
LPDIRECT3DSURFACE9
pDestSurface
,
CONST
PALETTEENTRY
*
pDestPalette
,
CONST
RECT
*
pDestRect
,
LPCVOID
pSrcData
,
UINT
SrcDataSize
,
CONST
RECT
*
pSrcRect
,
DWORD
dwFilter
,
D3DCOLOR
Colorkey
,
D3DXIMAGE_INFO
*
pSrcInfo
)
{
FIXME
(
"stub
\n
"
);
if
(
!
pDestSurface
||
!
pSrcData
|
!
SrcDataSize
)
return
D3DERR_INVALIDCALL
;
return
E_NOTIMPL
;
}
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