mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
Use UTF-8 instead of ANSI
This commit is contained in:
parent
45ebdc46c5
commit
3a73844dde
@ -1795,7 +1795,7 @@ HRESULT DirectX::CreateDDSTextureFromFileEx(ID3D11Device* d3dDevice,
|
|||||||
if (texture || textureView)
|
if (texture || textureView)
|
||||||
{
|
{
|
||||||
CHAR strFileA[MAX_PATH];
|
CHAR strFileA[MAX_PATH];
|
||||||
int result = WideCharToMultiByte(CP_ACP,
|
int result = WideCharToMultiByte(CP_UTF8,
|
||||||
WC_NO_BEST_FIT_CHARS,
|
WC_NO_BEST_FIT_CHARS,
|
||||||
fileName,
|
fileName,
|
||||||
-1,
|
-1,
|
||||||
|
@ -1542,7 +1542,7 @@ HRESULT DirectX::LoadDDSTextureFromFileEx(
|
|||||||
if (texture)
|
if (texture)
|
||||||
{
|
{
|
||||||
CHAR strFileA[MAX_PATH];
|
CHAR strFileA[MAX_PATH];
|
||||||
int result = WideCharToMultiByte(CP_ACP,
|
int result = WideCharToMultiByte(CP_UTF8,
|
||||||
WC_NO_BEST_FIT_CHARS,
|
WC_NO_BEST_FIT_CHARS,
|
||||||
fileName,
|
fileName,
|
||||||
-1,
|
-1,
|
||||||
|
@ -894,7 +894,7 @@ HRESULT DirectX::CreateWICTextureFromFileEx(ID3D11Device* d3dDevice,
|
|||||||
if (texture || textureView)
|
if (texture || textureView)
|
||||||
{
|
{
|
||||||
char strFileA[MAX_PATH];
|
char strFileA[MAX_PATH];
|
||||||
int result = WideCharToMultiByte(CP_ACP,
|
int result = WideCharToMultiByte(CP_UTF8,
|
||||||
WC_NO_BEST_FIT_CHARS,
|
WC_NO_BEST_FIT_CHARS,
|
||||||
fileName,
|
fileName,
|
||||||
-1,
|
-1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user