Add const alternative for LegoOmni::Create and MxVideoParam, only available for MinGW

This commit is contained in:
Anonymous Maarten 2023-06-30 08:31:48 +02:00
parent 8b6099b2d9
commit 5bf7f1e57a
2 changed files with 14 additions and 0 deletions

View File

@ -182,6 +182,13 @@ MxResult LegoOmni::Create(MxOmniCreateParam &p)
return SUCCESS;
}
#if defined(__MINGW32__)
MxResult LegoOmni::Create(const MxOmniCreateParam &p)
{
return Create((MxOmniCreateParam &)p);
}
#endif
void LegoOmni::Destroy()
{
// FIXME: Stub

View File

@ -18,6 +18,13 @@ class MxVideoParam
__declspec(dllexport) MxVideoParam &operator=(const MxVideoParam &);
__declspec(dllexport) ~MxVideoParam();
#ifdef __MINGW32__
__declspec(dllexport) MxVideoParam(const MxRect32 &rect, MxPalette *pal, unsigned long p3, const MxVideoParamFlags &flags)
: MxVideoParam((MxRect32 &)rect, pal, p3, (MxVideoParamFlags &)flags)
{
}
#endif
__declspec(dllexport) void SetDeviceName(char *id);
inline MxVideoParamFlags &flags() { return m_flags; }