Minor code cleanup
This commit is contained in:
Родитель
d7f7e7d021
Коммит
a3c2bf945a
|
@ -23,8 +23,6 @@ using Microsoft::WRL::ComPtr;
|
|||
|
||||
//#define VERBOSE_TRACE
|
||||
|
||||
#pragma warning(disable : 4351)
|
||||
|
||||
namespace
|
||||
{
|
||||
struct EngineCallback : public IXAudio2EngineCallback
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
// http://go.microsoft.com/fwlink/?LinkId=248929
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "pch.h"
|
||||
#include "SoundCommon.h"
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace DirectX
|
|||
virtual const char* what() const override
|
||||
{
|
||||
static char s_str[64] = {};
|
||||
sprintf_s(s_str, "Failure with HRESULT of %08X", result);
|
||||
sprintf_s(s_str, "Failure with HRESULT of %08X", static_cast<unsigned int>(result));
|
||||
return s_str;
|
||||
}
|
||||
|
||||
|
|
|
@ -730,6 +730,9 @@ void SpriteBatch::Impl::SortSprites()
|
|||
return x->originRotationDepth.w < y->originRotationDepth.w;
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -441,6 +441,9 @@ namespace
|
|||
case DDS_ALPHA_MODE_OPAQUE:
|
||||
case DDS_ALPHA_MODE_CUSTOM:
|
||||
return mode;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче