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
eadc7b31
Commit
eadc7b31
authored
Aug 05, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Aug 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Get rid of unused unlock_surface() argument.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37820452
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
d3dx9_private.h
dlls/d3dx9_36/d3dx9_private.h
+1
-1
surface.c
dlls/d3dx9_36/surface.c
+8
-8
texture.c
dlls/d3dx9_36/texture.c
+1
-1
No files found.
dlls/d3dx9_36/d3dx9_private.h
View file @
eadc7b31
...
@@ -123,7 +123,7 @@ HRESULT load_volume_texture_from_dds(IDirect3DVolumeTexture9 *volume_texture, co
...
@@ -123,7 +123,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
;
const
PALETTEENTRY
*
palette
,
DWORD
filter
,
DWORD
color_key
,
const
D3DXIMAGE_INFO
*
src_info
)
DECLSPEC_HIDDEN
;
HRESULT
lock_surface
(
IDirect3DSurface9
*
surface
,
const
RECT
*
surface_rect
,
D3DLOCKED_RECT
*
lock
,
HRESULT
lock_surface
(
IDirect3DSurface9
*
surface
,
const
RECT
*
surface_rect
,
D3DLOCKED_RECT
*
lock
,
IDirect3DSurface9
**
temp_surface
,
BOOL
write
)
DECLSPEC_HIDDEN
;
IDirect3DSurface9
**
temp_surface
,
BOOL
write
)
DECLSPEC_HIDDEN
;
HRESULT
unlock_surface
(
IDirect3DSurface9
*
surface
,
const
RECT
*
surface_rect
,
D3DLOCKED_RECT
*
lock
,
HRESULT
unlock_surface
(
IDirect3DSurface9
*
surface
,
const
RECT
*
surface_rect
,
IDirect3DSurface9
*
temp_surface
,
BOOL
update
)
DECLSPEC_HIDDEN
;
IDirect3DSurface9
*
temp_surface
,
BOOL
update
)
DECLSPEC_HIDDEN
;
unsigned
short
float_32_to_16
(
const
float
in
)
DECLSPEC_HIDDEN
;
unsigned
short
float_32_to_16
(
const
float
in
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3dx9_36/surface.c
View file @
eadc7b31
...
@@ -256,7 +256,7 @@ HRESULT lock_surface(IDirect3DSurface9 *surface, const RECT *surface_rect, D3DLO
...
@@ -256,7 +256,7 @@ HRESULT lock_surface(IDirect3DSurface9 *surface, const RECT *surface_rect, D3DLO
return
hr
;
return
hr
;
}
}
HRESULT
unlock_surface
(
IDirect3DSurface9
*
surface
,
const
RECT
*
surface_rect
,
D3DLOCKED_RECT
*
lock
,
HRESULT
unlock_surface
(
IDirect3DSurface9
*
surface
,
const
RECT
*
surface_rect
,
IDirect3DSurface9
*
temp_surface
,
BOOL
update
)
IDirect3DSurface9
*
temp_surface
,
BOOL
update
)
{
{
IDirect3DDevice9
*
device
;
IDirect3DDevice9
*
device
;
...
@@ -608,7 +608,7 @@ static HRESULT save_dds_surface_to_memory(ID3DXBuffer **dst_buffer, IDirect3DSur
...
@@ -608,7 +608,7 @@ static HRESULT save_dds_surface_to_memory(ID3DXBuffer **dst_buffer, IDirect3DSur
copy_pixels
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
pixels
,
dst_pitch
,
0
,
copy_pixels
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
pixels
,
dst_pitch
,
0
,
&
volume
,
pixel_format
);
&
volume
,
pixel_format
);
unlock_surface
(
src_surface
,
NULL
,
&
locked_rect
,
temp_surface
,
FALSE
);
unlock_surface
(
src_surface
,
NULL
,
temp_surface
,
FALSE
);
*
dst_buffer
=
buffer
;
*
dst_buffer
=
buffer
;
return
D3D_OK
;
return
D3D_OK
;
...
@@ -1912,7 +1912,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
...
@@ -1912,7 +1912,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
&&
src_size
.
height
!=
surfdesc
.
Height
))
&&
src_size
.
height
!=
surfdesc
.
Height
))
{
{
WARN
(
"Source rect %s is misaligned.
\n
"
,
wine_dbgstr_rect
(
src_rect
));
WARN
(
"Source rect %s is misaligned.
\n
"
,
wine_dbgstr_rect
(
src_rect
));
unlock_surface
(
dst_surface
,
dst_rect
,
&
lockrect
,
surface
,
FALSE
);
unlock_surface
(
dst_surface
,
dst_rect
,
surface
,
FALSE
);
return
D3DXERR_INVALIDDATA
;
return
D3DXERR_INVALIDDATA
;
}
}
...
@@ -1925,7 +1925,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
...
@@ -1925,7 +1925,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
||
!
is_conversion_to_supported
(
destformatdesc
))
||
!
is_conversion_to_supported
(
destformatdesc
))
{
{
FIXME
(
"Unsupported format conversion %#x -> %#x.
\n
"
,
src_format
,
surfdesc
.
Format
);
FIXME
(
"Unsupported format conversion %#x -> %#x.
\n
"
,
src_format
,
surfdesc
.
Format
);
unlock_surface
(
dst_surface
,
dst_rect
,
&
lockrect
,
surface
,
FALSE
);
unlock_surface
(
dst_surface
,
dst_rect
,
surface
,
FALSE
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1946,7 +1946,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
...
@@ -1946,7 +1946,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
}
}
}
}
return
unlock_surface
(
dst_surface
,
dst_rect
,
&
lockrect
,
surface
,
TRUE
);
return
unlock_surface
(
dst_surface
,
dst_rect
,
surface
,
TRUE
);
}
}
/************************************************************
/************************************************************
...
@@ -2036,7 +2036,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromSurface(IDirect3DSurface9 *dst_surface,
...
@@ -2036,7 +2036,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromSurface(IDirect3DSurface9 *dst_surface,
hr
=
D3DXLoadSurfaceFromMemory
(
dst_surface
,
dst_palette
,
dst_rect
,
lock
.
pBits
,
hr
=
D3DXLoadSurfaceFromMemory
(
dst_surface
,
dst_palette
,
dst_rect
,
lock
.
pBits
,
src_desc
.
Format
,
lock
.
Pitch
,
src_palette
,
src_rect
,
filter
,
color_key
);
src_desc
.
Format
,
lock
.
Pitch
,
src_palette
,
src_rect
,
filter
,
color_key
);
if
(
FAILED
(
unlock_surface
(
src_surface
,
NULL
,
&
lock
,
temp_surface
,
FALSE
)))
if
(
FAILED
(
unlock_surface
(
src_surface
,
NULL
,
temp_surface
,
FALSE
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXERR_INVALIDDATA
;
return
hr
;
return
hr
;
...
@@ -2217,7 +2217,7 @@ HRESULT WINAPI D3DXSaveSurfaceToFileInMemory(ID3DXBuffer **dst_buffer, D3DXIMAGE
...
@@ -2217,7 +2217,7 @@ HRESULT WINAPI D3DXSaveSurfaceToFileInMemory(ID3DXBuffer **dst_buffer, D3DXIMAGE
IWICBitmapFrameEncode_WritePixels
(
frame
,
height
,
IWICBitmapFrameEncode_WritePixels
(
frame
,
height
,
locked_rect
.
Pitch
,
height
*
locked_rect
.
Pitch
,
locked_rect
.
pBits
);
locked_rect
.
Pitch
,
height
*
locked_rect
.
Pitch
,
locked_rect
.
pBits
);
unlock_surface
(
src_surface
,
src_rect
,
&
locked_rect
,
temp_surface
,
FALSE
);
unlock_surface
(
src_surface
,
src_rect
,
temp_surface
,
FALSE
);
}
}
else
/* Pixel format conversion */
else
/* Pixel format conversion */
{
{
...
@@ -2254,7 +2254,7 @@ HRESULT WINAPI D3DXSaveSurfaceToFileInMemory(ID3DXBuffer **dst_buffer, D3DXIMAGE
...
@@ -2254,7 +2254,7 @@ HRESULT WINAPI D3DXSaveSurfaceToFileInMemory(ID3DXBuffer **dst_buffer, D3DXIMAGE
}
}
convert_argb_pixels
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
&
size
,
src_format_desc
,
convert_argb_pixels
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
&
size
,
src_format_desc
,
dst_data
,
dst_pitch
,
0
,
&
size
,
dst_format_desc
,
0
,
NULL
);
dst_data
,
dst_pitch
,
0
,
&
size
,
dst_format_desc
,
0
,
NULL
);
unlock_surface
(
src_surface
,
src_rect
,
&
locked_rect
,
temp_surface
,
FALSE
);
unlock_surface
(
src_surface
,
src_rect
,
temp_surface
,
FALSE
);
IWICBitmapFrameEncode_WritePixels
(
frame
,
height
,
dst_pitch
,
dst_pitch
*
height
,
dst_data
);
IWICBitmapFrameEncode_WritePixels
(
frame
,
height
,
dst_pitch
,
dst_pitch
*
height
,
dst_data
);
HeapFree
(
GetProcessHeap
(),
0
,
dst_data
);
HeapFree
(
GetProcessHeap
(),
0
,
dst_data
);
...
...
dlls/d3dx9_36/texture.c
View file @
eadc7b31
...
@@ -1379,7 +1379,7 @@ HRESULT WINAPI D3DXFillTexture(struct IDirect3DTexture9 *texture, LPD3DXFILL2D f
...
@@ -1379,7 +1379,7 @@ HRESULT WINAPI D3DXFillTexture(struct IDirect3DTexture9 *texture, LPD3DXFILL2D f
fill_texture
(
format
,
data
+
y
*
lock_rect
.
Pitch
+
x
*
format
->
bytes_per_pixel
,
&
value
);
fill_texture
(
format
,
data
+
y
*
lock_rect
.
Pitch
+
x
*
format
->
bytes_per_pixel
,
&
value
);
}
}
}
}
if
(
FAILED
(
hr
=
unlock_surface
(
surface
,
NULL
,
&
lock_rect
,
temp_surface
,
TRUE
)))
if
(
FAILED
(
hr
=
unlock_surface
(
surface
,
NULL
,
temp_surface
,
TRUE
)))
{
{
IDirect3DSurface9_Release
(
surface
);
IDirect3DSurface9_Release
(
surface
);
return
hr
;
return
hr
;
...
...
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