mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 22:41:42 +00:00
d3d8: 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
b38d055a7c
commit
36cd136a6b
|
@ -35,7 +35,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)
|
||||
{
|
||||
|
@ -85,7 +86,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 a new issue