mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
Switched to using strongly typed flags (#179)
This commit is contained in:
@@ -928,9 +928,9 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
size_t height = 0;
|
||||
|
||||
DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN;
|
||||
DWORD dwFilter = TEX_FILTER_DEFAULT;
|
||||
DWORD dwSRGB = 0;
|
||||
DWORD dwFilterOpts = 0;
|
||||
TEX_FILTER_FLAGS dwFilter = TEX_FILTER_DEFAULT;
|
||||
TEX_FILTER_FLAGS dwSRGB = TEX_FILTER_DEFAULT;
|
||||
TEX_FILTER_FLAGS dwFilterOpts = TEX_FILTER_DEFAULT;
|
||||
DWORD fileType = WIC_CODEC_BMP;
|
||||
|
||||
wchar_t szOutputFile[MAX_PATH] = {};
|
||||
@@ -1056,7 +1056,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
break;
|
||||
|
||||
case OPT_FILTER:
|
||||
dwFilter = LookupByName(pValue, g_pFilters);
|
||||
dwFilter = static_cast<TEX_FILTER_FLAGS>(LookupByName(pValue, g_pFilters));
|
||||
if (!dwFilter)
|
||||
{
|
||||
wprintf(L"Invalid value specified with -if (%ls)\n", pValue);
|
||||
|
||||
Reference in New Issue
Block a user