dinput: Remove unneeded casts.
This commit is contained in:
parent
81d964824b
commit
39b99d47ad
|
@ -319,7 +319,7 @@ void fill_DataFormat(void *out, const void *in, const DataFormat *df) {
|
||||||
case 4:
|
case 4:
|
||||||
TRACE("Copying (i) to %d default value %d\n",
|
TRACE("Copying (i) to %d default value %d\n",
|
||||||
df->dt[i].offset_out, df->dt[i].value);
|
df->dt[i].offset_out, df->dt[i].value);
|
||||||
*((int *) (out_c + df->dt[i].offset_out)) = (int) df->dt[i].value;
|
*((int *) (out_c + df->dt[i].offset_out)) = df->dt[i].value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -55,17 +55,17 @@ static const IDirectInput8WVtbl ddi8wvt;
|
||||||
|
|
||||||
static inline IDirectInputImpl *impl_from_IDirectInput7W( IDirectInput7W *iface )
|
static inline IDirectInputImpl *impl_from_IDirectInput7W( IDirectInput7W *iface )
|
||||||
{
|
{
|
||||||
return (IDirectInputImpl *)CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl7w );
|
return CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl7w );
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline IDirectInputImpl *impl_from_IDirectInput8A( IDirectInput8A *iface )
|
static inline IDirectInputImpl *impl_from_IDirectInput8A( IDirectInput8A *iface )
|
||||||
{
|
{
|
||||||
return (IDirectInputImpl *)CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8a );
|
return CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8a );
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline IDirectInputImpl *impl_from_IDirectInput8W( IDirectInput8W *iface )
|
static inline IDirectInputImpl *impl_from_IDirectInput8W( IDirectInput8W *iface )
|
||||||
{
|
{
|
||||||
return (IDirectInputImpl *)CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8w );
|
return CONTAINING_RECORD( iface, IDirectInputImpl, lpVtbl8w );
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline IDirectInput7W *IDirectInput7W_from_impl( IDirectInputImpl *iface )
|
static inline IDirectInput7W *IDirectInput7W_from_impl( IDirectInputImpl *iface )
|
||||||
|
|
Loading…
Reference in New Issue