mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Fix all mingw errors & warnings (#411)
* Use COMPAT_MODE macro to fix errors with mingw gcc 12.2 * MxOmni::m_timerRunning is a MxBool * MxDirect3D::m_unk0x88c is a MxBool * MxBackgroundAudioManager::m_unk0x13c is a MxS32 * Fix warning: deleting 'void*' is undefined [-Wdelete-incomplete] * Fix inline function 'void TglImpl::RendererImpl::Destroy()' used but never defined * Fix warning: inline function 'MxStreamerSubClass1::MxStreamerSubClass1(undefined4)' used but never defined * Use `FALSE` for m_timerRunning * Format * Format * Remove comment * Limit scope for variables in compat mode * clang-format --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
committed by
GitHub
parent
bb7e4df11b
commit
fbe7f8bbb0
@@ -13,8 +13,11 @@ Renderer* Tgl::CreateRenderer()
|
||||
return renderer;
|
||||
}
|
||||
|
||||
namespace TglImpl
|
||||
{
|
||||
// GLOBAL: LEGO1 0x1010103c
|
||||
IDirect3DRM2* g_pD3DRM = NULL;
|
||||
} // namespace TglImpl
|
||||
|
||||
// Inlined only
|
||||
Result RendererImpl::Create()
|
||||
@@ -31,23 +34,6 @@ Result RendererImpl::Create()
|
||||
return (m_data != NULL) ? Success : Error;
|
||||
}
|
||||
|
||||
inline void RendererDestroy(IDirect3DRM2* pRenderer)
|
||||
{
|
||||
int refCount = pRenderer->Release();
|
||||
if (refCount <= 0) {
|
||||
g_pD3DRM = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// Inlined only
|
||||
void RendererImpl::Destroy()
|
||||
{
|
||||
if (m_data) {
|
||||
RendererDestroy(m_data);
|
||||
m_data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a1894
|
||||
Device* RendererImpl::CreateDevice(const DeviceDirect3DCreateData& data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user