d3d9: Explicitly cast FourCC formats in d3dformat_from_wined3dformat() and wined3dformat_from_d3dformat().
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
36cd136a6b
commit
31d9d0f7f3
|
@ -44,7 +44,8 @@ D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format)
|
|||
BYTE *c = (BYTE *)&format;
|
||||
|
||||
/* Don't translate FOURCC formats */
|
||||
if (isprint(c[0]) && isprint(c[1]) && isprint(c[2]) && isprint(c[3])) return format;
|
||||
if (isprint(c[0]) && isprint(c[1]) && isprint(c[2]) && isprint(c[3]))
|
||||
return (D3DFORMAT)format;
|
||||
|
||||
switch(format)
|
||||
{
|
||||
|
@ -108,7 +109,8 @@ enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format)
|
|||
BYTE *c = (BYTE *)&format;
|
||||
|
||||
/* Don't translate FOURCC formats */
|
||||
if (isprint(c[0]) && isprint(c[1]) && isprint(c[2]) && isprint(c[3])) return format;
|
||||
if (isprint(c[0]) && isprint(c[1]) && isprint(c[2]) && isprint(c[3]))
|
||||
return (enum wined3d_format_id)format;
|
||||
|
||||
switch(format)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue