[PATCH 4/7] d3dx9: Get rid of init_set_constants() function.

Matteo Bruni matteo.mystral at gmail.com
Mon Jul 10 15:45:35 CDT 2017


2017-07-06 13:15 GMT+02:00 Paul Gofman <gofmanp at gmail.com>:
> Signed-off-by: Paul Gofman <gofmanp at gmail.com>
> ---
>  dlls/d3dx9_36/preshader.c | 58 ++++++++++++++---------------------------------
>  1 file changed, 17 insertions(+), 41 deletions(-)
>
> diff --git a/dlls/d3dx9_36/preshader.c b/dlls/d3dx9_36/preshader.c
> index cabddcd..1aaf59d 100644
> --- a/dlls/d3dx9_36/preshader.c
> +++ b/dlls/d3dx9_36/preshader.c
> @@ -305,7 +305,8 @@ static unsigned int get_reg_components(unsigned int table)
>
>  #define PRES_BITMASK_BLOCK_SIZE (sizeof(unsigned int) * 8)
>
> -static HRESULT init_set_constants(struct d3dx_const_tab *const_tab, ID3DXConstantTable *ctab);
> +static HRESULT init_set_constants_param(struct d3dx_const_tab *const_tab, ID3DXConstantTable *ctab,
> +        D3DXHANDLE hc, struct d3dx_parameter *param);

With some function reordering this forward declaration shouldn't be
necessary at all.



More information about the wine-devel mailing list