mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-22 15:51:16 +00:00
Add const alternative for LegoOmni::Create and MxVideoParam, only available for MinGW
This commit is contained in:
parent
8b6099b2d9
commit
5bf7f1e57a
@ -182,6 +182,13 @@ MxResult LegoOmni::Create(MxOmniCreateParam &p)
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
MxResult LegoOmni::Create(const MxOmniCreateParam &p)
|
||||||
|
{
|
||||||
|
return Create((MxOmniCreateParam &)p);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void LegoOmni::Destroy()
|
void LegoOmni::Destroy()
|
||||||
{
|
{
|
||||||
// FIXME: Stub
|
// FIXME: Stub
|
||||||
|
|||||||
@ -18,6 +18,13 @@ class MxVideoParam
|
|||||||
__declspec(dllexport) MxVideoParam &operator=(const MxVideoParam &);
|
__declspec(dllexport) MxVideoParam &operator=(const MxVideoParam &);
|
||||||
__declspec(dllexport) ~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);
|
__declspec(dllexport) void SetDeviceName(char *id);
|
||||||
|
|
||||||
inline MxVideoParamFlags &flags() { return m_flags; }
|
inline MxVideoParamFlags &flags() { return m_flags; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user